Home | History | Annotate | Download | only in tune

Lines Matching defs:clock_gettime

339 #define clock_gettime(id,ts)  (ASSERT_FAIL (clock_gettime not available), -1)
470 * measurements. When available, it's better to use clock_gettime,
473 * systems where clock_gettime is broken in one way or the other,
748 printf ("clock_gettime don't know what ID to use\n");
757 if (clock_gettime (CGT_ID, &unit) != 0)
760 printf ("clock_gettime id=%d error: %s\n", CGT_ID, strerror (errno));
776 printf ("clock_gettime is %s accurate\n", unittime_string (cgt_unittime));
784 if (clock_gettime (CGT_ID, &start))
787 printf ("clock_gettime id=%d error: %s\n", CGT_ID, strerror (errno));
795 if (clock_gettime (CGT_ID, &end))
798 printf ("clock_gettime id=%d error: %s\n", CGT_ID, strerror (errno));
805 printf ("delay loop of %d rounds took %s (according to clock_gettime)\n",
810 printf ("clock_gettime id=%d not believable\n", CGT_ID);
1132 /* use clock_gettime if microsecond or better resolution */
1137 strcpy (speed_time_string, "microsecond accurate clock_gettime()");
1162 /* use clock_gettime if 1 tick or better resolution */
1281 clock_gettime (CGT_ID, &start_cgt);
1441 if (have_cgt && use_cgt) clock_gettime (CGT_ID, &end_cgt);
1473 printf (" clock_gettime %ld.%09ld -> %ld.%09ld\n",
1507 END_USE ("clock_gettime()", t_cgt);