now property

  1. @override
Int64 get now
override

The current time, in nanoseconds since Unix Epoch.

Note that this time may be inaccurate if the executing system is suspended for sleep. See https://github.com/open-telemetry/opentelemetry-js/issues/852 for more information.

Implementation

@override
Int64 get now =>
    // .now() returns an int in Dartium, requiring .toDouble()
    _timeOrigin + _fromDouble(window.performance.now().toDouble());