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()
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de