Typo? Why did this work, anyway?
This commit is contained in:
parent
d82a612a90
commit
e28eddc51f
@ -2602,7 +2602,7 @@ double app_tminterval(int stop,int usertime)
|
|||||||
struct timeval now;
|
struct timeval now;
|
||||||
static struct timeval tmstart;
|
static struct timeval tmstart;
|
||||||
|
|
||||||
if (usertime) getrusage(RUSAGE_SELF,&rus), now = rus.ru_time;
|
if (usertime) getrusage(RUSAGE_SELF,&rus), now = rus.ru_utime;
|
||||||
else gettimeofday(&now,NULL);
|
else gettimeofday(&now,NULL);
|
||||||
|
|
||||||
if (stop==TM_START) tmstart = now;
|
if (stop==TM_START) tmstart = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user