Module Stopwatch

The class that's used to create and manage a stopwatch.

Info:

  • Copyright: Debaru Kft. 2017
  • Release:
  • License: GNU
  • Author: Debaru Kft

Functions

Stopwatch () Creates a Stopwatch instance.
start () Starts the Stopwatch.
stop () Stops the Stopwatch.
reset () Stops the Stopwatch and clears the Stopwatch counter value.
running () Returns true if the Stopwatch is still running.
get () Returns the elapsed time in millisecond resolution since the Stopwatch has been started.


Functions

Stopwatch ()
Creates a Stopwatch instance.
start ()
Starts the Stopwatch. It will run until the Stopwatch is stopped, or the LuaPLC is restarted.
stop ()
Stops the Stopwatch. The Stopwatch counter value is not cleared.
reset ()
Stops the Stopwatch and clears the Stopwatch counter value.
running ()
Returns true if the Stopwatch is still running.

Returns:

    bool
get ()
Returns the elapsed time in millisecond resolution since the Stopwatch has been started.

Returns:

    int
generated by LDoc 1.4.6 Last updated 2023-09-25 09:31:08