Class ClockHelpers
ClockHelpers.
Inherited Members
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public static class ClockHelpers
Fields
DefaultClockTopic
The DefaultClockTopic.
Declaration
public const string DefaultClockTopic = "/clock"
Field Value
| Type | Description |
|---|---|
| string |
Methods
ConstructTimeMsg(double)
ConstructTimeMsg method.
Declaration
public static TimeMsg ConstructTimeMsg(double timeInSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| double | timeInSeconds | The timeInSeconds. |
Returns
| Type | Description |
|---|---|
| TimeMsg | The result. |
Now()
Now method.
Declaration
public static TimeMsg Now()
Returns
| Type | Description |
|---|---|
| TimeMsg | The result. |
ToSeconds(TimeMsg)
ToSeconds method.
Declaration
public static double ToSeconds(this TimeMsg timeMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeMsg | timeMessage | The timeMessage. |
Returns
| Type | Description |
|---|---|
| double | The computed value. |