time_in_miliseconds()

time_in_miliseconds()#

time_in_miliseconds() returns the current real-world time in milliseconds since the Unix epoch using the CLOCK_REALTIME clock source.

Prototype

uint64_t time_in_miliseconds(void);

Parameters

Key

Type

Description

-

-

This function does not take any parameters.


Return Value

Returns the current time in milliseconds as a uint64_t value.

Notes

[‘Uses clock_gettime(CLOCK_REALTIME, &spec) to retrieve the current time.’, ‘The returned value represents the number of milliseconds elapsed since January 1, 1970 (Unix epoch).’, ‘For a monotonic time source, use time_in_miliseconds_monotonic().’]

Prototype

// Not applicable in JS

Prototype

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