Time

Measuring time and waiting.

ElapsedMilliseconds ✅

Result.q = ElapsedMilliseconds()

A millisecond counter, accurate to the millisecond. Only the difference between two values is meaningful: the starting point is unspecified. On Windows it reads the high-resolution performance counter.

OpenConsole()
start.q = ElapsedMilliseconds()
Delay(50)
taken.q = ElapsedMilliseconds() - start
If taken >= 40
  PrintN("waited")
EndIf

Output:

waited

Delay ✅

Delay(Time)

Pauses the program for Time milliseconds. Other programs get the processor in the meantime.

Not yet available 🔜

Nothing: dates are in the Date library.