Lines Matching refs:endtime
100 struct timespec endtime;
170 if (clock_gettime(CLOCK_REALTIME, &endtime) < 0) {
175 endtime.tv_sec -= starttime.tv_sec;
176 endtime.tv_nsec -= starttime.tv_nsec;
177 while (endtime.tv_nsec < 0) {
178 endtime.tv_sec -= 1;
179 endtime.tv_nsec += 1000000000;
182 endtime.tv_sec, endtime.tv_nsec);
185 1024 * i / ((double) endtime.tv_sec +
186 (double) endtime.tv_nsec / 1000000000.));