NetBurner 3.1
stopwatch.h
Go to the documentation of this file.
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
15
#ifndef _NB_STOPWATCH_H
16
#define _NB_STOPWATCH_H
17
18
const
int
FIRST_UNUSED_TIMER = -1;
19
24
class
StopWatch
25
{
26
unsigned
long
long
ref_start;
27
unsigned
long
long
elapsed;
28
bool
bRunning;
29
30
public
:
36
StopWatch(
int
timer_number = FIRST_UNUSED_TIMER);
37
41
void
Start();
42
46
void
Clear();
47
53
unsigned
long
long
Stop();
54
60
unsigned
long
long
GetTime();
61
67
double
CountResolution();
68
74
double
Convert(
unsigned
long
long
);
75
};
76
77
#endif
78
nbrtos
include
stopwatch.h
Generated by
1.8.14