Function lrs::syscall::clock_gettime

Retrieves the time of a clock.

Syntax

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

Arguments

NameDescription
clock

The id of the clock.

res

The place in which the time will be stored.

Return value

Returns success or an error value.

See also