comparison lispref/os.texi @ 57989:2f160b3f3283

(Processor Run Time): New section documenting get-internal-run-time.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 06 Nov 2004 17:03:18 +0000
parents 8685ad649821
children 6142d449ffb8 cb7f41387eb3
comparison
equal deleted inserted replaced
57988:75429b9aa2f2 57989:2f160b3f3283
21 * System Environment:: Distinguish the name and kind of system. 21 * System Environment:: Distinguish the name and kind of system.
22 * User Identification:: Finding the name and user id of the user. 22 * User Identification:: Finding the name and user id of the user.
23 * Time of Day:: Getting the current time. 23 * Time of Day:: Getting the current time.
24 * Time Conversion:: Converting a time from numeric form to a string, or 24 * Time Conversion:: Converting a time from numeric form to a string, or
25 to calendrical data (or vice versa). 25 to calendrical data (or vice versa).
26 * Processor Run Time:: Getting the run time used by Emacs.
26 * Time Calculations:: Adding, subtracting, comparing times, etc. 27 * Time Calculations:: Adding, subtracting, comparing times, etc.
27 * Timers:: Setting a timer to call a function at a certain time. 28 * Timers:: Setting a timer to call a function at a certain time.
28 * Terminal Input:: Recording terminal input for debugging. 29 * Terminal Input:: Recording terminal input for debugging.
29 * Terminal Output:: Recording terminal output for debugging. 30 * Terminal Output:: Recording terminal output for debugging.
30 * Sound Output:: Playing sounds on the computer's speaker. 31 * Sound Output:: Playing sounds on the computer's speaker.
1283 if you try to encode a time that is out of range, an error results. 1284 if you try to encode a time that is out of range, an error results.
1284 For instance, years before 1970 do not work on some systems; 1285 For instance, years before 1970 do not work on some systems;
1285 on others, years as early as 1901 do work. 1286 on others, years as early as 1901 do work.
1286 @end defun 1287 @end defun
1287 1288
1289 @node Processor Run Time
1290 @section Processor Run time
1291
1292 @defun get-internal-run-time
1293 This function returns the processor run time used by Emacs as a list
1294 of three integers: @code{(@var{high} @var{low} @var{microsec})}. The
1295 integers @var{high} and @var{low} combine to give the number of
1296 seconds, which is
1297 @ifnottex
1298 @var{high} * 2**16 + @var{low}.
1299 @end ifnottex
1300 @tex
1301 $high*2^{16}+low$.
1302 @end tex
1303
1304 The third element, @var{microsec}, gives the microseconds (or 0 for
1305 systems that return time with the resolution of only one second).
1306
1307 If the system doesn't provide a way to determine the processor run
1308 time, get-internal-run-time returns the same time as current-time.
1309 @end defun
1310
1288 @node Time Calculations 1311 @node Time Calculations
1289 @section Time Calculations 1312 @section Time Calculations
1290 1313
1291 These functions perform calendrical computations using time values 1314 These functions perform calendrical computations using time values
1292 (the kind of list that @code{current-time} returns). 1315 (the kind of list that @code{current-time} returns).