.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH __PPC_GET_TIMEBASE 3 2017-09-15 "GNU C Library" "Linux Programmer's\
+.TH __PPC_GET_TIMEBASE 3 2019-03-06 "GNU C Library" "Linux Programmer's\
Manual"
.SH NAME
__ppc_get_timebase, __ppc_get_timebase_freq \- get the current value
uint64_t tb1, tb2, diff;
uint64_t freq = __ppc_get_timebase_freq();
- printf("Time Base frequency = %"PRIu64" Hz\\n", freq);
+ printf("Time Base frequency = %"PRIu64" Hz\en", freq);
tb1 = __ppc_get_timebase();
diff = (MAX_TB \- tb2) + tb1;
}
- printf("Elapsed time = %1.2f usecs\\n",
+ printf("Elapsed time = %1.2f usecs\en",
(double) diff * 1000000 / freq );
exit(EXIT_SUCCESS);