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

TestClock..::..AddSeconds Method

Adds the specified number of seconds to the current time of the clock. Can be used with a negative value to simulate time going backwards.

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

Syntax


public void AddSeconds(
	double seconds
)

Parameters

seconds
Type: Double
The number of seconds to add.

Examples


C#
// Example of adding 30 seconds to the clock
testClock.AddSeconds(30);
Console.WriteLine(testClock.Now); // Displays the time 30 seconds ahead

// Example of subtracting 20 seconds (going back in time)
testClock.AddSeconds(-20);
Console.WriteLine(testClock.Now); // Displays the time 20 seconds earlier