]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/__ppc_get_timebase.3
rename.2: SEE ALSO: add rename(1)
[thirdparty/man-pages.git] / man3 / __ppc_get_timebase.3
index c5bd02f80209258caa559d9abfe9d64acb3244ff..6622f3138a459b0f1fe377a04b4b813ef70469d3 100644 (file)
@@ -22,7 +22,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH __PPC_GET_TIMEBASE 3 2015-07-23 "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
@@ -31,7 +31,7 @@ __ppc_get_timebase, __ppc_get_timebase_freq \- get the current value
 .B #include <sys/platform/ppc.h>
 .PP
 .BI "uint64_t __ppc_get_timebase(void)"
-
+.PP
 .BI "uint64_t __ppc_get_timebase_freq(void);"
 .SH DESCRIPTION
 .BR __ppc_get_timebase ()
@@ -39,7 +39,7 @@ reads the current value of the Time Base Register and returns its
 value, while
 .BR __ppc_get_timebase_freq ()
 returns the frequency in which the Time Base Register is updated.
-
+.PP
 The Time Base Register is a 64-bit register provided by Power Architecture
 processors.
 It stores a monotonically incremented value that is updated at a
@@ -49,7 +49,7 @@ frequency.
 .BR __ppc_get_timebase ()
 returns a 64-bit unsigned integer that represents the current value of the
 Time Base Register.
-
+.PP
 .BR __ppc_get_timebase_freq ()
 returns a 64-bit unsigned integer that represents the frequency at
 which the Time Base Register is updated.
@@ -69,7 +69,7 @@ between two calls to
 .BR __ppc_get_timebase ().
 .SS Program source
 \&
-.nf
+.EX
 #include <inttypes.h>
 #include <stdint.h>
 #include <stdio.h>
@@ -86,7 +86,7 @@ main(void)
     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();
 
@@ -101,12 +101,12 @@ main(void)
         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);
 }
-.fi
+.EE
 .SH SEE ALSO
 .BR time (2),
 .BR usleep (3)