OSDN Git Service
(root)
/
proj16
/
16.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
modified: src/eng_core.cpp
[proj16/16.git]
/
src
/
timer.h
1
#ifndef _TIMER_H_
\r
2
#define _TIMER_H_
\r
3
#include <time.h>
\r
4
\r
5
namespace engine {
\r
6
class Timer
\r
7
{
\r
8
public:
\r
9
Timer();
\r
10
clock_t start_timer();
\r
11
double elapsed_timer();
\r
12
double time_in_seconds();
\r
13
double time_in_seconds(time_t in_t);
\r
14
clock_t _time();
\r
15
~Timer();
\r
16
protected:
\r
17
private:
\r
18
clock_t t;
\r
19
};
\r
20
}
\r
21
\r
22
#endif