WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

Clock Class

Defines a mechanism for retrieving the current date and time, allowing for consistent time handling within .NET applications. Ideal for scenarios requiring time manipulation, such as unit testing, stock exchange replay, or Cyber attack detection analysis.

Namespace:  Walter
Assembly:  Walter (in Walter.dll)

Syntax


public static class Clock

Remarks


Implement the IClock interface to enable dependency injection for time-related functions. This facilitates the easy substitution of the clock implementation with a mock or test implementation, like TestClock, during testing. The static Instance property is used for accessing the current time and can be overridden in unit tests or integration tests to simulate different time scenarios.

You should use the IClock.Instance static instance when possible

Inheritance Hierarchy


Object
  Walter..::..Clock