Function lrs::syscall::clock_getres

Retrieves the resolution of a clock.

Syntax

fn clock_getres(clock: i32, res: &mut timespec) -> i32

Arguments

NameDescription
clock

The id of the clock.

res

The place in which the resolution will be stored.

Return value

Returns success or an error value.

See also