Lines Matching refs:now
34 struct timeval now;
38 now.tv_sec = milliseconds / 1000;
39 now.tv_usec = (milliseconds % 1000) * 1000;
42 now.tv_sec = (long) (milliseconds / 1000);
43 now.tv_usec = (long) (milliseconds % 1000) * 1000;
46 return now;
60 struct timeval now;
63 now.tv_sec = tsnow.tv_sec;
64 now.tv_usec = tsnow.tv_nsec / 1000;
73 (void)gettimeofday(&now, NULL);
76 now.tv_sec = (long)time(NULL);
77 now.tv_usec = 0;
80 return now;
92 struct timeval now;
93 (void)gettimeofday(&now, NULL);
94 return now;
104 struct timeval now;
105 now.tv_sec = (long)time(NULL);
106 now.tv_usec = 0;
107 return now;