ndn-lite
Typedefs | Functions
Time Function

Unified interfaces to get time, since different platform has different implementations. More...

Collaboration diagram for Time Function:

Typedefs

typedef uint64_t ndn_time_ms_t
 Time count in milli-seconds. More...
 
typedef uint64_t ndn_time_us_t
 Time count in micro-seconds. More...
 

Functions

ndn_time_ms_t ndn_time_now_ms (void)
 Get current time count in ms. More...
 
ndn_time_us_t ndn_time_now_us (void)
 Get current time count in us. More...
 
void ndn_time_delay (ndn_time_ms_t delay)
 Sleep for a specified time interval. More...
 

Detailed Description

Unified interfaces to get time, since different platform has different implementations.

Typedef Documentation

◆ ndn_time_ms_t

typedef uint64_t ndn_time_ms_t

Time count in milli-seconds.

◆ ndn_time_us_t

typedef uint64_t ndn_time_us_t

Time count in micro-seconds.

Function Documentation

◆ ndn_time_delay()

void ndn_time_delay ( ndn_time_ms_t  delay)

Sleep for a specified time interval.

Parameters
[in]delayTime to delay in ms.

◆ ndn_time_now_ms()

ndn_time_ms_t ndn_time_now_ms ( void  )

Get current time count in ms.

Returns
Time count. The absolute value is meaningless.

◆ ndn_time_now_us()

ndn_time_us_t ndn_time_now_us ( void  )

Get current time count in us.

Returns
Time count. The absolute value is meaningless.