Time
This class stores and provides the network time (current system time with an offset calculated from our peer's time)
Constructor Summary
Public Constructor | ||
public |
constructor(offset: number) |
Member Summary
Public Members | ||
public set |
offset(offset: number) |
Method Summary
Public Methods | ||
public |
now(): number Returns the current time adjusted with the network's offset |
Public Constructors
public constructor(offset: number) source
Params:
Name | Type | Attribute | Description |
offset | number |
|
Public Members
public set offset(offset: number) source
Public Methods
public now(): number source
Returns the current time adjusted with the network's offset
Return:
number |