TimestampProvider class
Default ITimestampProvider
implementation.
Properties
is |
Returns true if the provider has been started. |
Methods
get |
Returns the maximum amount of error, in milliseconds. |
get |
Returns the current server time as a UTC tick. |
start() | Starts the provider. |
stop() | Stops the provider if its running. |
Property Details
isRunning
Returns true if the provider has been started.
boolean isRunning
Property Value
boolean
Method Details
getMaxTimestampError()
Returns the maximum amount of error, in milliseconds.
function getMaxTimestampError(): number
Returns
number
getTimestamp()
Returns the current server time as a UTC tick.
function getTimestamp(): number
Returns
number
start()
Starts the provider.
function start(): Promise<void>
Returns
Promise<void>
stop()
Stops the provider if its running.
function stop()
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for