mco_system_get_current_time

Retrieve the operating system time.

Prototype

 
        timer_unit mco_system_get_current_time(void);
 

Arguments

This function has no arguments

Description

This function retrieves from the operating system the number of timer ticks (microseconds) since 1 Jan 1970 (Epoch).

Return Value

The number of timer ticks (microseconds) since 1 Jan 1970 (Epoch)

Example

 
        int main(int argc, char* argv[])
        {
            ...
            timer_unit microsecs =  mco_system_get_current_time();
            ...
        }

Related Topics Link IconRelated Topics

Files

Header file:
mcotime.h
Source file:
mcosalhollow.c
Library:
libmcosalhollow.a
Header file:
mcotime.h
Source file:
mcosaltimer.c
Library:
libmcosaltimer.a