WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Timer.h
1#ifndef _WINC_TIMER
2#define _WINC_TIMER
3
4#include <sys/time.h>
5
6namespace WXP {
7 class Timer {
8 struct timeval start; /* Stores time when image placed in window */
9 struct timeval current; /* Stores current time */
10 struct timeval event_time; /* Stores last time an event occurred */
11
12 float elapse;
13
14 public:
15 Timer();
16 int init();
17 float elapsed();
18 float sleep( float secs );
19 };
20}
21#endif
This class manages a simple timer.
Definition Timer.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4