source: abuse/trunk/src/imlib/timing.h @ 521

Last change on this file since 521 was 494, checked in by Sam Hocevar, 12 years ago

style: remove trailing spaces, fix copyright statements.

  • Property svn:keywords set to Id
File size: 671 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com or
8 *  Jonathan Clark.
9 */
10
11#ifndef __TIMING_HPP_
12#define __TIMING_HPP_
13
14class time_marker
15{
16public:
17    long seconds;
18    long micro_seconds;
19    void get_time();
20    time_marker();
21    double diff_time(time_marker *other); // return time diff in seconds
22};
23
24void milli_wait(unsigned int wait_time); // sleep for a millisecond
25void timer_init();
26void timer_uninit();
27
28#endif
29
Note: See TracBrowser for help on using the repository browser.