source: abuse/trunk/src/imlib/include/timing.hpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 386 bytes
Line 
1#ifndef __TIMING_HPP_
2#define __TIMING_HPP_
3
4class time_marker
5{
6public :
7  long seconds;
8  long micro_seconds; 
9  void get_time();
10  time_marker(); 
11  double diff_time(time_marker *other);    // returns time diff in seconds                   
12} ;
13
14void milli_wait(unsigned wait_time);  // sleeps for a milli second 1000 millies=1 sec
15void timer_init();
16void timer_uninit();
17
18#endif
19
Note: See TracBrowser for help on using the repository browser.