Sign in Join
FPDoc Onlineexperiment

clock_getres function

In unit Linux

Get clock resolution.

Declaration

pascal
function clock_getres(clk_id: clockid_t; res: ptimespec): cint

Description

clock_getres returns the resolution of the clock specified in clk_id in the res structure. It can be Nil. if the clock exists and the resolution can be retrieved, 0 is returned.

Errors

On Error, -1 is returned. fpgeterrno can be used to get more detailed error information.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.