]>
Commit | Line | Data |
---|---|---|
1 | // | |
2 | // UtilTimer.h | |
3 | // CPPUtil | |
4 | // | |
5 | // Created by James McIlree on 10/9/13. | |
6 | // Copyright (c) 2013 Apple. All rights reserved. | |
7 | // | |
8 | ||
9 | #ifndef __CPPUtil__UtilTimer__ | |
10 | #define __CPPUtil__UtilTimer__ | |
11 | ||
12 | class Timer { | |
13 | protected: | |
14 | AbsTime _start; | |
15 | AbsTime _end; | |
16 | std::string _message; | |
17 | ||
18 | public: | |
19 | Timer(const char* message); | |
20 | ~Timer(); | |
21 | }; | |
22 | ||
23 | #endif /* defined(__CPPUtil__UtilTimer__) */ |