Gets the current system time.
Tests the functionality of the fixed time provider.
import core.thread; SysTime time = SysTime(DateTime(2021, 9, 22, 22, 34, 57)); auto provider = new FixedTimeProvider(time); assert(provider.now == time, "Fixed time provider's time does not match expected."); Thread.sleep(seconds(1)); assert(provider.now == time, "Fixed time provider's time does not match expected.");
Implementation of the current time provider which always returns a fixed value, useful for testing.