Data Structures | Functions
time.h File Reference

Time functions. More...

Data Structures

struct  vtm_date
 

Functions

VTM_API int vtm_date_now_utc (struct vtm_date *date)
 
VTM_API uint64_t vtm_time_current_millis ()
 
VTM_API uint64_t vtm_time_current_micros ()
 

Function Documentation

VTM_API int vtm_date_now_utc ( struct vtm_date date)

Gets current date in UTC.

Parameters
[out]datethe date structure that is filled
Returns
VTM_OK if call succeeded
VTM_API uint64_t vtm_time_current_millis ( )

Get current timestamp in milliseconds.

Returns
milliseconds since 1970-01-01 UTC
VTM_API uint64_t vtm_time_current_micros ( )

Get current timestamp in microseconds.

Returns
microseconds since 1970-01-01 UTC