mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
32 lines
540 B
Plaintext
32 lines
540 B
Plaintext
NAME
|
|
runtime - user runtime
|
|
|
|
SYNOPSIS
|
|
runtime()
|
|
|
|
TYPES
|
|
return nonnegative real
|
|
|
|
DESCRIPTION
|
|
Returns the current user mode cpu runtime in seconds.
|
|
|
|
EXAMPLE
|
|
The result for this example will depend on the speed and number of
|
|
of clock-ticks per second for the computer being used.
|
|
The result is a multiple of 1/CLK_TCK, where CLK_TCK is
|
|
usually 60. The following is for a XXX machine.
|
|
|
|
> t = runtime();
|
|
> pi = pi(1e-1000);
|
|
> runtime() - t;
|
|
.2
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
ctime
|