Skip to content

Modern Tui TuiClockMs

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Application Loop › TuiClockMs

TuiClockMs

Returns a clock in milliseconds that never goes backwards, the one the loop uses.

Syntax

TuiClockMs( ) as float64

Description

A monotonic millisecond clock. The loop schedules ticks and frames from it; it is exposed so your own timing uses the same one.

Example

#import "std/tui"
using tui

dim as float64 t0 = TuiClockMs( )
print t0 >= 0                      '' -1 (true)
print TuiClockMs( ) >= t0          '' -1 (true)  -- monotonic, never goes backwards

See also

TuiApp TuiApp.Update TuiApp.Shutdown TuiNone TuiQuit TuiInvalidate
TuiApp.Init TuiApp.View TuiCmd TuiRedraw TuiTick TuiSuspend

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Application Loop
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally