Skip to main content
Version: Java (Groovy)

microsToMillis

microsToMillis returns the number of milliseconds equivalent to the specified microseconds value.

Syntax

microsToMillis(micros)

Parameters

ParameterTypeDescription
microslong

The amount of microseconds to convert to milliseconds.

Returns

The number of milliseconds equivalent to the specified microseconds value. Null input values will return NULL_LONG.

Examples

micros = 5000
println micros

println microsToMillis(micros)