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()
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour