Lines Matching refs:now
75 struct timespec now;
76 clock_gettime(CLOCK_MONOTONIC,&now);
77 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_nsec-start.tv_nsec)/1000000;
81 struct timeval now;
82 gettimeofday(&now, NULL);
83 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000;
102 Uint32 then, now, elapsed;
121 now = SDL_GetTicks();
122 elapsed = (now-then);
123 then = now;