Go to the source code of this file.
◆ getRTimer()
Definition at line 170 of file timer.cc.
174 gettimeofday(&now, &
tzp);
176 if (
startRl.tv_usec > now.tv_usec)
178 now.tv_usec += 1000000;
static double timer_resolution
static struct timezone tzp
static struct timeval startRl
◆ getTimer()
Definition at line 95 of file timer.cc.
98 getrusage(RUSAGE_SELF,&
t_rec);
102 getrusage(RUSAGE_CHILDREN,&
t_rec);
static double timer_resolution
static struct rusage t_rec
◆ initRTimer()
Definition at line 156 of file timer.cc.
158 #ifdef HAVE_GETTIMEOFDAY static struct timeval siStartRTime
static struct timezone tzp
static struct timeval startRl
◆ initTimer()
Definition at line 67 of file timer.cc.
69 getrusage(RUSAGE_SELF,&
t_rec);
71 +
t_rec.ru_stime.tv_sec*1000000+
t_rec.ru_stime.tv_usec
73 getrusage(RUSAGE_CHILDREN,&
t_rec);
75 +
t_rec.ru_stime.tv_sec*1000000+
t_rec.ru_stime.tv_usec
77 return (
int)time(
NULL);
static struct rusage t_rec
◆ SetMinDisplayTime()
void SetMinDisplayTime |
( |
double |
mtime | ) |
|
◆ SetTimerResolution()
void SetTimerResolution |
( |
int |
res | ) |
|
Definition at line 22 of file timer.cc.
static double timer_resolution
◆ startRTimer()
void startRTimer |
( |
void |
| ) |
|
Definition at line 151 of file timer.cc.
static struct timeval siStartRTime
static struct timezone tzp
◆ startTimer()
Definition at line 80 of file timer.cc.
82 getrusage(RUSAGE_SELF,&
t_rec);
86 getrusage(RUSAGE_CHILDREN,&
t_rec);
static struct rusage t_rec
◆ writeRTime()
void writeRTime |
( |
const char * |
s | ) |
|
Definition at line 193 of file timer.cc.
197 gettimeofday(&now, &
tzp);
201 now.tv_usec += 1000000;
210 Print(
"//%s %.2f sec \n" ,
v ,f);
static struct timeval siStartRTime
static struct timezone tzp
const Variable & v
< [in] a sqrfree bivariate poly
◆ writeTime()
void writeTime |
( |
const char * |
s | ) |
|
Definition at line 119 of file timer.cc.
122 getrusage(RUSAGE_SELF,&
t_rec);
126 getrusage(RUSAGE_CHILDREN,&
t_rec);
134 #ifdef EXTEND_TIMER_D 138 Print(
"//%s %.2f sec\n" ,
v ,f);
static double timer_resolution
static struct rusage t_rec
const Variable & v
< [in] a sqrfree bivariate poly
◆ rtimerv
◆ timerv