Dart API Referencedart:coreClock

Clock Class

The class Clock provides access to a monotonically incrementing clock device.

Static Methods

Code int frequency() #

Returns the frequency of clock ticks in Hz.

static int frequency() => 1000;

Code int now() #

Returns the current clock tick.

static int now() => Primitives.dateNow();