time.jamo (built in)

time: seconds since the program started, today's date and time, and waiting. use "time.jamo"

The performance counter's value when the program started is kept in time_start, and its speed in time_speed. The first call works them out from when Windows made the process, so it counts from the real start, and later calls only read the counter into time_reading, made once, so they need no memory.

structDateTime

struct DateTime
    year: int
    month: int
    day: int
    weekday: int
    hour: int
    minute: int
    second: int
    millisecond: int
end

functime_setup

func time_setup()

Works out the counter's value when the program started, on the first call. The counter's speed never changes while Windows runs

funcseconds_since_start

func seconds_since_start(): float

Seconds since the program started, as a float with better than a microsecond's detail. It only goes up

funcsleep

func sleep(seconds: float)

Waits this many seconds, to about a millisecond, without using the processor

funcsleep_ms

func sleep_ms(milliseconds: int)

Waits this many milliseconds

functime_ms

func time_ms(): int

Whole milliseconds since the program started

funcnow

func now(): DateTime

The PC's date and time now, in its own time zone. weekday is 0 for Sunday up to 6 for Saturday

functime_two_digits

func time_two_digits(number: int): string

funcDateTime.date_text

func DateTime.date_text(): string

Like 2026-11-03

funcDateTime.time_text

func DateTime.time_text(): string

Like 09:05:30, on a 24-hour clock

funcDateTime.weekday_name

func DateTime.weekday_name(): string

Like Tuesday