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

TestClock..::..Add Method

Adds the specified duration to the current time of the clock.

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

Syntax


public void Add(
	TimeSpan time
)

Parameters

time
Type: TimeSpan
The duration to add to the current time.

Examples


C#
// Example of adding 1 hour to the current time of the TestClock
var testClock = new TestClock(DateTime.Now);
testClock.Add(TimeSpan.FromHours(1));
Console.WriteLine(testClock.Now); // Displays the time one hour ahead of the current time