/[emacs]/emacs/lispref/os.texi
ViewVC logotype

Diff of /emacs/lispref/os.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48.2.8 by miles, Sat Sep 4 09:21:45 2004 UTC revision 1.48.2.9 by miles, Fri Nov 12 04:21:18 2004 UTC
# Line 23  pertaining to the terminal and the scree Line 23  pertaining to the terminal and the scree
23  * Time of Day::         Getting the current time.  * Time of Day::         Getting the current time.
24  * Time Conversion::     Converting a time from numeric form to a string, or  * Time Conversion::     Converting a time from numeric form to a string, or
25                            to calendrical data (or vice versa).                            to calendrical data (or vice versa).
26    * Processor Run Time::  Getting the run time used by Emacs.
27  * Time Calculations::   Adding, subtracting, comparing times, etc.  * Time Calculations::   Adding, subtracting, comparing times, etc.
28  * Timers::              Setting a timer to call a function at a certain time.  * Timers::              Setting a timer to call a function at a certain time.
29  * Terminal Input::      Recording terminal input for debugging.  * Terminal Input::      Recording terminal input for debugging.
# Line 1285  For instance, years before 1970 do not w Line 1286  For instance, years before 1970 do not w
1286  on others, years as early as 1901 do work.  on others, years as early as 1901 do work.
1287  @end defun  @end defun
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    
1311  @node Time Calculations  @node Time Calculations
1312  @section Time Calculations  @section Time Calculations
1313    

Legend:
Removed from v.1.48.2.8  
changed lines
  Added in v.1.48.2.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26