[go: up one dir, main page]

Menu

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

Download this file

25 lines (20 with data), 346 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
#ifndef WATCH_H
#define WATCH_H
#include "Platform.h"
class Watch
{
public:
Watch(void);
void Start();
void Stop();
void Reset();
long GetElapsedTime();
private:
//struct timespec _startTime;
//struct timespec _stopTime;
sys_time_t _startTime;
sys_time_t _stopTime;
bool _isRunning;
};
//long diff(timespec t1, timespec t2);
#endif