Skip to content

Microseconds

Claude edited this page Oct 27, 2026 · 9 revisions

Microseconds 〔BlitzLLVM〕

Command Index · BlitzBasic · Runtime

Microseconds  ; returns UInt64

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Like MilliSecs, but counts microseconds (millionths of a second) and returns a UInt64, because the count needs far more than 32 bits. This is a BlitzLLVM extension: the originals only have MilliSecs. See Differences for how a UInt64 behaves.

start:UInt64 = Microseconds()
Delay 50
Print Microseconds() - start >= 45000
1

Returns: A number of microseconds that keeps growing while the program runs, as a UInt64. It does not wrap around like MilliSecs does, and its start is not fixed, so use the difference between two calls to measure time.

Differences and known gaps:

  • The value is a UInt64, which no original command returns. Assign it to a variable declared with :UInt64 to keep all of its digits, as an Int or a Float only holds part of them.

Related commands

Command Index · BlitzBasic · Runtime

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally