<div class="meta" robots="noindex">

</div>

Method

# Xojo.System.Microseconds

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `System.Microseconds<system.microseconds>` as a replacement.

</div>

## Description

The number of <span class="title-ref">Microseconds</span> (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:

``` xojo
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
```

## Compatibility

All project types on all supported operating systems.
