#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
◆ GTT_TIMER_SINCE
| #define GTT_TIMER_SINCE -1 |
◆ GTT_TIMER_START
| #define GTT_TIMER_START 0 |
◆ GTT_TIMER_STOP
◆ gtttimer()
◆ gtttimer_initkey()
| void gtttimer_initkey |
( |
void | | ) |
|
◆ gtttimer_start()
| struct timeval gtttimer_start |
( |
void | | ) |
|
significantly (0.02ms) faster and simpler timer start/stop functions
Definition at line 118 of file RegSelTimer.cxx.
119{
123}
void __gtt_gettime(struct timeval *t)
initialiser
◆ gtttimer_stop()
| double gtttimer_stop |
( |
struct timeval | start_time | ) |
|
Definition at line 128 of file RegSelTimer.cxx.
129{
131 struct timeval stop_time;
132 struct timeval diff_time;
133
134
136
137 _timersub( &stop_time, &start_time, &diff_time );
138
139
140
141
142 time = (diff_time.tv_sec*1000.0) + (diff_time.tv_usec/1000.0);
144}
time(flags, cells_name, *args, **kw)