Struct lrs::time::Clock

A clock that can be used to measure time.

Syntax

struct Clock(i32)

Fields

PositionDescription
1

The integer representing the clock.

Methods

ReceiverNameDescription
selfget_time

Returns the current time of the clock.

selfresolution

Returns the resolution of the clock.

selfset_time

Sets the time of the clock.

selfsleep_for

Sleeps for an amount of time.

selfsleep_to

Sleeps until an absolute time.

selftimer

Creates a new timer.

selftimer_non_blocking

Creates a new non-blocking timer.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.