Xojo.System.Ticks

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

Xojo.System.Ticks() As Double

Supported for all project types and targets.

The number of ticks (one 60th 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.Ticks

// Do a long-running process here

Dim finished As Double = Xojo.System.Ticks
Dim elapsedSeconds As Double = (finished - start) / 60