NetBurner 3.5.0
PDF Version
 
stopwatch.h
Go to the documentation of this file.
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
36#ifndef _NB_STOPWATCH_H
37#define _NB_STOPWATCH_H
38
39#include <constants.h>
40
47{
48 unsigned long long ref_start;
49 unsigned long long elapsed;
50 bool bRunning;
51
52 public:
62 StopWatch(int timer_number = FIRST_UNUSED_TIMER);
63
69 void Start();
70
76 void Clear();
77
83 unsigned long long Stop();
84
90 unsigned long long GetTime();
91
98
104 double Convert(unsigned long long);
105};
106
107#endif
108
Stopwatch for timing events.
Definition stopwatch.h:47
unsigned long long GetTime()
Get the StopWatch time.
void Clear()
Clear the stopwatch count.
StopWatch(int timer_number=FIRST_UNUSED_TIMER)
Create a stopwatch object.
unsigned long long Stop()
Stop the StopWatch.
double Convert(unsigned long long)
Convert a time or interval from an unsigned long long to double floatl.
double CountResolution()
Returns the value of one StopWatch tick time.
void Start()
Start the stopwatch.
NetBurner System Constants.
#define FIRST_UNUSED_TIMER
Definition nbrtos/include/constants.h:396