

Public Member Functions | |
| double | getTime () const |
| void | reset () |
| UnixTimer () | |
| ~UnixTimer () | |
Private Attributes | |
| double | start |
|
|
Definition at line 28 of file unixtimer.cpp. References reset(). 00029 {
00030 reset();
00031 }
|
|
|
Definition at line 33 of file unixtimer.cpp. 00034 {
00035 }
|
|
|
Implements Timer. Definition at line 37 of file unixtimer.cpp. References start. 00038 {
00039 struct timeval t;
00040 gettimeofday(&t, NULL);
00041 return (double) t.tv_sec + (double) t.tv_usec / 1000000.0 - start;
00042 }
|
|
|
Implements Timer. Definition at line 44 of file unixtimer.cpp. References start. Referenced by UnixTimer(). 00045 {
00046 struct timeval t;
00047 gettimeofday(&t, NULL);
00048 start = (double) t.tv_sec + (double) t.tv_usec / 1000000.0;
00049 }
|
|
|
Definition at line 24 of file unixtimer.cpp. |
1.4.1