clock_getres

Get clock resolution

Declaration

Source position: linux.pp line 483

  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

Name Description
clock_gettime Get the time of a clock
clock_settime Set the time of a clock

results matching ""

    No results matching ""