start_msectimer()

start_msectimer()#

start_msectimer() initializes a millisecond-resolution timer and returns the expiration timestamp.

Prototype

uint64_t start_msectimer(uint64_t miliseconds);

Parameters

Key

Type

Description

miliseconds

uint64_t

The duration of the timer in milliseconds. A value of 0 disables the timer.


Return Value

Returns the absolute expiration timestamp in milliseconds since an unspecified epoch. If miliseconds is 0, the function returns 0.

Notes

Use test_msectimer() to check if the timer has expired.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples