Table of Contents
QccTime - timer routines
#include "libQccPack.h"
int QccTimeTic();
int QccTimeToc(double *time);
QccTimeTic() and QccTimeToc()
implement a method of measuring execution time. QccTimeTic() starts the
timer; QccTimeToc() returns the amount of time elapsed since the previous
call to QccTimeTic(). The elapsed time is returned in time which represents
the time in seconds as a floating-point value.
Each call to QccTimeToc()
returns the elapsed time since the last call to QccTimeTic(). If QccTimeTic()
has not been called previously, QccTimeToc() returns the time since the
program started running.
QccTimeTic() and QccTimeToc() rely on gettimeofday(2)
to return the current time.
These routines return 0 on success
and 1 on failure.
gettimeofday(2)
, QccPack(3)
Copyright
(C) 1997-2021 James E. Fowler
Table of Contents