Constructor
new Clock(clockTypeopt)
Create a Clock.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
clockType |
ClockType |
<optional> |
Clock.ClockType.SYSTEM_TIME | The type of the clock to be created. |
- Source:
Members
clockType
Get ClockType of this Clock object.
- Source:
Methods
now() → {Time}
Return the current time.
- Source:
Returns:
Return the current time.
- Type
- Time