[go: up one dir, main page]

Menu

[r225]: / tags / 0.3.0 / watch.h  Maximize  Restore  History

Download this file

22 lines (18 with data), 324 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef WATCH_H
#define WATCH_H
#include "platform.h"
class Watch
{
public:
Watch(void);
void Start();
void Stop();
void Reset();
uint64_t GetElapsedTime();
uint64_t GetRandomSeed();
private:
sys_time_t _startTime;
sys_time_t _stopTime;
bool _isRunning;
};
#endif