WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
Timer.h
1
#ifndef _WINC_TIMER
2
#define _WINC_TIMER
3
4
#include <sys/time.h>
5
6
namespace
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
WXP::Timer
This class manages a simple timer.
Definition
Timer.h:7
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7