[][src]Module actix::clock

A configurable source of time.

This module provides an API to get the current instant in such a way that the source of time may be configured. This allows mocking out the source of time in tests.

See Module tokio_timer::clock for full documentation.

Structs

Clock

A handle to a source of time.

Traits

Now

Returns Instant values representing the current instant in time.

Functions

now

Returns an Instant corresponding to "now".