fromDOMHighResTimeStamp function

  1. @experimental
Int64 fromDOMHighResTimeStamp(
  1. num ts
)

Converts a high-resolution timestamp from the browser performance API to an Int64 representing nanoseconds since Unix Epoch.

Implementation

@experimental
Int64 fromDOMHighResTimeStamp(num ts) {
  return timeOrigin + msToNs(ts);
}