Constructor
new MonotonicTimestampGenerator(warningThresholdopt, minLogIntervalopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
warningThreshold |
Number |
<optional> |
Determines how far in the future timestamps are allowed to drift before a
warning is logged, expressed in milliseconds. Default: |
minLogInterval |
Number |
<optional> |
In case of multiple log events, it determines the time separation between log
events, expressed in milliseconds. Use 0 to disable. Default: |
- Source:
Extends
- TimestampGenerator
Methods
getDate() → {Number}
Returns the current time in milliseconds since UNIX epoch
- Source:
Returns:
- Type
- Number