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()
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈