Lines Matching refs:endtime
94 struct timespec endtime;
175 if (clock_gettime(CLOCK_REALTIME, &endtime) < 0) {
180 endtime.tv_sec -= starttime.tv_sec;
181 endtime.tv_nsec -= starttime.tv_nsec;
182 while (endtime.tv_nsec < 0) {
183 endtime.tv_sec -= 1;
184 endtime.tv_nsec += 1000000000;
187 endtime.tv_sec, endtime.tv_nsec);
190 i / ((double) endtime.tv_sec +
191 (double) endtime.tv_nsec / 1000000000.));