klyn.Application.monotonicMs
method

    public static native monotonicMs() as Double

Description

Returns a monotonic timestamp in milliseconds.

This value is intended for elapsed-time measurements. Unlike `Application.timeMs()`, it is not tied to the system wall clock and does not move backwards when the operating system adjusts the current time.

Returns

A monotonic timestamp expressed as milliseconds.

Example

    begin = Application.monotonicMs()
    # Work to measure
    end = Application.monotonicMs()
    print(f"Duration = {end-begin} ms")