Module _static_modules._system

Inheritance graph
_static_modules._system System
Description

Low-level module that embodies common operating system calls, making them available to the Pike programmer.

Note

You typically do not want to access this module directly. Use the System module instead.

See also

System


Constant CPU_TIME_IMPLEMENTATION

constant string _static_modules._system.CPU_TIME_IMPLEMENTATION

Description

This string constant identifies the internal interface used to get the CPU time. It is an implementation detail - see rusage.c for possible values and their meanings.

See also

gethrvtime, gauge


Constant CPU_TIME_IS_THREAD_LOCAL

constant string _static_modules._system.CPU_TIME_IS_THREAD_LOCAL

Description

This string constant tells whether or not the CPU time, returned by e.g. gethrvtime, is thread local or not. The value is "yes" if it is and "no" if it isn't. The value is also "no" if there is no thread support.

See also

gethrvtime, gauge


Constant CPU_TIME_RESOLUTION

constant int _static_modules._system.CPU_TIME_RESOLUTION

Description

The resolution of the CPU time, returned by e.g. gethrvtime, in nanoseconds. It is -1 if the resolution isn't known.

See also

gethrvtime, gauge


Constant ITIMER_PROF

constant _static_modules._system.ITIMER_PROF

Description

Identifier for a timer that decrements both when the process is executing and when the system is executing on behalf of the process.

See also

setitimer, getitimer


Constant ITIMER_REAL

constant _static_modules._system.ITIMER_REAL

Description

Identifier for a timer that decrements in real time.

See also

setitimer, getitimer


Constant ITIMER_VIRTUAL

constant _static_modules._system.ITIMER_VIRTUAL

Description

Identifier for a timer that decrements only when the process is executing.

See also

setitimer, getitimer


Constant REAL_TIME_IMPLEMENTATION

constant string _static_modules._system.REAL_TIME_IMPLEMENTATION

Description

This string constant identifies the internal interface used to get the high resolution real time. It is an implementation detail - see rusage.c for possible values and their meanings.

See also

gethrtime


Constant REAL_TIME_IS_MONOTONIC

constant string _static_modules._system.REAL_TIME_IS_MONOTONIC

Description

This string constant tells whether or not the high resolution real time returned by gethrtime, is monotonic or not. The value is "yes" if it is and "no" if it isn't.

Monotonic time is not affected by clock adjustments that might happen to keep the calendaric clock in synch. It's therefore more suited to measure time intervals in programs.

See also

gethrtime


Constant REAL_TIME_RESOLUTION

constant int _static_modules._system.REAL_TIME_RESOLUTION

Description

The resolution of the real time returned by gethrtime, in nanoseconds. It is -1 if the resolution isn't known.

See also

gethrtime