Documentation

Clock

Table of Contents

Namespaces

Test

Interfaces

ClockInterface

Classes

Clock
A global clock.
DatePoint
An immmutable DateTime with stricter error handling and return types than the native one.
MockClock
A clock that always returns the same date, suitable for testing time-sensitive logic.
MonotonicClock
A monotonic clock suitable for performance profiling.
NativeClock
A clock that relies the system time.

Traits

ClockAwareTrait
A trait to help write time-sensitive classes.

Functions

now()  : DatePoint

Functions


        
On this page

Search results