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. |
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 |
|
|