Return the current process system CPU time in nanoseconds.

Synopsis

Declared in <bsls_timeutil.h>

static
Types::Int64
getProcessSystemTimer();

Description

Return the instantaneous values of a platform‐dependent timer for the current process system time in absolute nanoseconds referenced to an arbitrary but fixed origin. If the system call fails return ‐1. Note that this method is thread‐safe only if initialize has been called before.

Return Value

process system CPU time in nanoseconds, or ‐1 on failure

Created with MrDocs