main.c
/*
 * Converts a double to a GTimeVal pointed by time argument
 */
Converts a double to a GTimeVal pointed by time argument
Converts a double to a GTimeVal pointed by time argument
static inline void double_to_tv(GTimeVal *time, double double_val)
{
	time->tv_sec = (gulong)trunc(double_val);
	time->tv_usec = (glong)trunc(1000000 * (double_val - time->tv_sec));
}
static inline void double_to_tv ( GTimeVal * time , double double_val ) { time -> tv_sec = ( gulong ) trunc ( double_val ) ; time -> tv_usec = ( glong ) trunc ( 1000000 * ( double_val - time -> tv_sec ) ) ; }
Converts a double to a GTimeVal pointed by time argument
Converts a double to a GTimeVal pointed by time argument