Class VirtualTimeClock
Represents a clock that uses virtual time.
Inheritance
System.Object
VirtualTimeClock
Implements
Namespace: System.Time
Assembly: Nuqleon.Time.dll
Syntax
public class VirtualTimeClock : Object, IClock
Constructors
VirtualTimeClock()
Creates a new virtual time clock with an initial time set to zero ticks.
Declaration
public VirtualTimeClock()
VirtualTimeClock(Int64)
Creates a new virtual time clock with the specified initial time.
Declaration
public VirtualTimeClock(long initialTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | initialTime | Initial time to set the clock to. |
Properties
Now
Gets or sets the current time in ticks.
Declaration
public long Now { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |