aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2004-11-06 17:03:18 +0000
committerEli Zaretskii <[email protected]>2004-11-06 17:03:18 +0000
commit2f6037a53f23616a4dcf321933f5ea543f1ad81b (patch)
tree15ffea15bd393343b971555b8c0c58fc9e1f72c5 /lispref
parent32bfb2d565e0ee6d23291895310ea66b146b4de8 (diff)
(Processor Run Time): New section documenting get-internal-run-time.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/os.texi23
1 files changed, 23 insertions, 0 deletions
diff --git a/lispref/os.texi b/lispref/os.texi
index 42a0613bfe..90fba8975e 100644
--- a/lispref/os.texi
+++ b/lispref/os.texi
@@ -23,6 +23,7 @@ pertaining to the terminal and the screen.
* Time of Day:: Getting the current time.
* Time Conversion:: Converting a time from numeric form to a string, or
to calendrical data (or vice versa).
+* Processor Run Time:: Getting the run time used by Emacs.
* Time Calculations:: Adding, subtracting, comparing times, etc.
* Timers:: Setting a timer to call a function at a certain time.
* Terminal Input:: Recording terminal input for debugging.
@@ -1285,6 +1286,28 @@ For instance, years before 1970 do not work on some systems;
on others, years as early as 1901 do work.
@end defun
+@node Processor Run Time
+@section Processor Run time
+
+@defun get-internal-run-time
+This function returns the processor run time used by Emacs as a list
+of three integers: @code{(@var{high} @var{low} @var{microsec})}. The
+integers @var{high} and @var{low} combine to give the number of
+seconds, which is
+@ifnottex
+@var{high} * 2**16 + @var{low}.
+@end ifnottex
+@tex
+$high*2^{16}+low$.
+@end tex
+
+The third element, @var{microsec}, gives the microseconds (or 0 for
+systems that return time with the resolution of only one second).
+
+If the system doesn't provide a way to determine the processor run
+time, get-internal-run-time returns the same time as current-time.
+@end defun
+
@node Time Calculations
@section Time Calculations