[go: up one dir, main page]

Menu

[r225]: / tags / 0.2.4 / Watch.h  Maximize  Restore  History

Download this file

27 lines (22 with data), 372 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef WATCH_H
#define WATCH_H
//#include <sys\timeb.h>
#include <time.h>
class Watch
{
public:
Watch(void);
void Start();
void Stop();
void Reset();
long GetElapsedTime();
private:
//long _startTime;
//long _stopTime;
struct timespec _startTime;
struct timespec _stopTime;
bool _isRunning;
//long GetTime();
};
long diff(timespec t1, timespec t2);
#endif