v2026.5.3
All Bundles
Bundle Date, time, and elapsed-timer utilities. Date provides current date/time and arithmetic (AddDays, AddHours). Timer measures wall-clock elapsed time. Included in lang.obl.

Timer

Provides elapsed time

timer := System.Time.Timer->New();
timer->Start();
# ... work ...
timer->End();
elapsed := timer->GetElapsedTime();
"Elapsed: {$elapsed}s"->PrintLine();

Operations

End #

Ends the timer

method : public : End() ~ Nil

Example

timer->End();

GetElapsedTime #

Number of clock ticks per/second

method : public : GetElapsedTime() ~ Float

Example

secs := timer->GetElapsedTime();
"Time: {$secs} seconds"->PrintLine();

New # constructor

Constructor

New(start:Bool)

Parameters

NameTypeDescription
startBoolflag, start timer after instantiation, default = true

Start #

Starts the timer

method : public : Start() ~ Nil

Example

timer := System.Time.Timer->New();
timer->Start();

ToString #

Formats the timer into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringformatted string