libcs compiles with -ansi option now
FossilOrigin-Name: afeca48ac2e33dace533047329ea48224ee5e4bfd4e83449f335d0a022a67215
This commit is contained in:
@ -94,17 +94,9 @@ typedef time_t cw_timer_t;
|
||||
#define cw_clock_start(c)\
|
||||
gettimeofday(c,NULL);
|
||||
|
||||
/**
|
||||
* Get lap time. (stop watch)
|
||||
* @param tv pointer to a clock variable defined with #CW_CLOCK_DEFINE
|
||||
* @return lap time in seconds.
|
||||
*/
|
||||
static inline double cw_clock_lap(struct timeval *tv)
|
||||
{
|
||||
struct timeval lap;
|
||||
gettimeofday(&lap, NULL);
|
||||
return (cw_timevaltodouble(&lap) - cw_timevaltodouble(tv)) / 1000000.0;
|
||||
}
|
||||
|
||||
double cw_clock_lap(struct timeval *tv);
|
||||
|
||||
|
||||
/**
|
||||
* An alias for #cw_clock_lap
|
||||
|
Reference in New Issue
Block a user