dag-adapters-local / Exports / FakeClockPort
Class: FakeClockPort
Implements
IClockPort
Table of contents
Constructors
Methods
Constructors
constructor
• new FakeClockPort(initialEpochMs?): FakeClockPort
Parameters
| Name | Type |
|---|---|
initialEpochMs | number |
Returns
Defined in
Methods
nowIso
▸ nowIso(): string
Returns
string
Implementation of
IClockPort.nowIso
Defined in
nowEpochMs
▸ nowEpochMs(): number
Returns
number
Implementation of
IClockPort.nowEpochMs
Defined in
advanceByMs
▸ advanceByMs(durationMs): void
Parameters
| Name | Type |
|---|---|
durationMs | number |
Returns
void
Defined in
setNowEpochMs
▸ setNowEpochMs(nextEpochMs): void
Parameters
| Name | Type |
|---|---|
nextEpochMs | number |
Returns
void