Xojo.System.Microseconds

From Xojo Documentation

Method

Xojo.System.Microseconds() As Double

Supported for all project types and targets.

The number of Microseconds (one millionth of a second or 1,000,000 of a second) that have passed since the computer/device was started.

Sample Code

Calculate the number of seconds that have elapsed:

Dim start As Double = Xojo.System.Microseconds

// Do a long-running process here

Dim finished As Double = Xojo.System.Microseconds
Dim elapsedSeconds As Double = (finished - start) / 1000000