projects
/
csrprogrammer:csrremote.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[csrprogrammer:csrremote.git]
/
stopwatch.h
1
#ifndef STOPWATCH_H
2
#define STOPWATCH_H
3
4
#include <ctime>
5
6
class StopWatch
7
{
8
public:
9
StopWatch();
10
void start(void);
11
long elapsedmsec(void);
12
float elapsedsec(void);
13
private:
14
timespec timedifference(timespec start, timespec end);
15
private:
16
bool started;
17
timespec starttime;
18
};
19
20
#endif // STOPWATCH_H