Module mas_storage::clock

source ·
Expand description

A Clock is a way to get the current date and time.

This module defines two implemetation of the Clock trait: SystemClock which uses the system time, and a MockClock, which can be used and freely manipulated in tests.

Structs§

Traits§

  • Represents a clock which can give the current date and time