Go to the source code of this file.
◆ getRTimer()
Definition at line 150 of file timer.cc.
151{
152 struct timeval now;
153
154 gettimeofday(&now, &
tzp);
155
156 if (
startRl.tv_usec > now.tv_usec)
157 {
158 now.tv_usec += 1000000;
159 now.tv_sec --;
160 }
161
164 (double) 1000000;
165
167}
STATIC_VAR double timer_resolution
STATIC_VAR struct timeval startRl
STATIC_VAR struct timezone tzp
◆ getTimer()
Definition at line 80 of file timer.cc.
81{
83 getrusage(RUSAGE_SELF,&
t_rec);
86 getrusage(RUSAGE_CHILDREN,&
t_rec);
91}
STATIC_VAR struct rusage t_rec
◆ initRTimer()
Definition at line 136 of file timer.cc.
137{
138#ifdef HAVE_GETTIMEOFDAY
141#else
144#endif
145}
STATIC_VAR struct timeval siStartRTime
◆ SetMinDisplayTime()
void SetMinDisplayTime |
( |
double | mtime | ) |
|
Definition at line 27 of file timer.cc.
28{
30}
STATIC_VAR double mintime
◆ SetTimerResolution()
void SetTimerResolution |
( |
int | res | ) |
|
◆ startRTimer()
void startRTimer |
( |
void | | ) |
|
◆ startTimer()
Definition at line 66 of file timer.cc.
67{
68 getrusage(RUSAGE_SELF,&
t_rec);
71 getrusage(RUSAGE_CHILDREN,&
t_rec);
74 return (
int)time(
NULL);
75}
STATIC_VAR int64 siStartTime
◆ writeRTime()
void writeRTime |
( |
const char * | s | ) |
|
Definition at line 173 of file timer.cc.
174{
175 struct timeval now;
176
177 gettimeofday(&now, &
tzp);
178
180 {
181 now.tv_usec += 1000000;
182 now.tv_sec --;
183 }
184
187 (double) 1000000;
188
190 Print(
"//%s %.2f sec \n" ,
v ,
f);
191}
const Variable & v
< [in] a sqrfree bivariate poly
◆ writeTime()
void writeTime |
( |
const char * | s | ) |
|
Definition at line 101 of file timer.cc.
102{
104 getrusage(RUSAGE_SELF,&
t_rec);
107 getrusage(RUSAGE_CHILDREN,&
t_rec);
113 {
114#ifdef EXTEND_TIMER_D
116#else
118 Print(
"//%s %.2f sec\n" ,
v ,
f);
119 else
121#endif
122 }
123}
VAR char my_yylinebuf[80]
◆ rtimerv
◆ timerv