Searched refs:start_tv (Results 1 – 2 of 2) sorted by relevance
68 static struct timeval start_tv; variable92 gettimeofday(&start_tv, NULL); in SDL_TicksInit()127 … ticks = (Uint32)((now.tv_sec - start_tv.tv_sec) * 1000 + (now.tv_usec - start_tv.tv_usec) / 1000); in SDL_GetTicks()
261 static double time_since(struct timeval *start_tv, struct timeval *stop_tv) in time_since() argument265 sec = stop_tv->tv_sec - start_tv->tv_sec; in time_since()266 usec = stop_tv->tv_usec - start_tv->tv_usec; in time_since()280 static double time_since_now(struct timeval *start_tv) in time_since_now() argument284 return time_since(start_tv, &stop_time); in time_since_now()290 static void calc_latency(struct timeval *start_tv, struct timeval *stop_tv, in calc_latency() argument295 delta = time_since(start_tv, stop_tv); in calc_latency()