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_VAR double timer_resolution
STATIC_VAR struct timeval startRl
STATIC_VAR struct timezone tzp
◆ getTimer()
Definition at line 95 of file timer.cc.
98 getrusage(RUSAGE_SELF,&
t_rec);
102 getrusage(RUSAGE_CHILDREN,&
t_rec);
STATIC_VAR struct rusage t_rec
STATIC_VAR int64 siStartTime
◆ initRTimer()
Definition at line 156 of file timer.cc.
158 #ifdef HAVE_GETTIMEOFDAY
STATIC_VAR struct timeval siStartRTime
◆ 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);
◆ SetMinDisplayTime()
void SetMinDisplayTime |
( |
double |
mtime | ) |
|
Definition at line 27 of file timer.cc.
STATIC_VAR double mintime
◆ SetTimerResolution()
void SetTimerResolution |
( |
int |
res | ) |
|
◆ startRTimer()
void startRTimer |
( |
void |
| ) |
|
◆ startTimer()
Definition at line 80 of file timer.cc.
82 getrusage(RUSAGE_SELF,&
t_rec);
86 getrusage(RUSAGE_CHILDREN,&
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);
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);
VAR char my_yylinebuf[80]
◆ rtimerv
◆ timerv