API Reference Manual  1.45.0
api/spec/time.h File Reference

ODP time. More...

#include <odp/visibility_begin.h>
#include <odp/api/std_types.h>
#include <odp/api/time_types.h>
#include <odp/visibility_end.h>
Include dependency graph for api/spec/time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

odp_time_t odp_time_local (void)
 Current local time. More...
 
uint64_t odp_time_local_ns (void)
 Current local time in nanoseconds. More...
 
odp_time_t odp_time_local_strict (void)
 Current local time (strict) More...
 
uint64_t odp_time_local_strict_ns (void)
 Current local time in nanoseconds (strict) More...
 
odp_time_t odp_time_global (void)
 Current global time. More...
 
uint64_t odp_time_global_ns (void)
 Current global time in nanoseconds. More...
 
odp_time_t odp_time_global_strict (void)
 Current global time (strict) More...
 
uint64_t odp_time_global_strict_ns (void)
 Current global time in nanoseconds (strict) More...
 
odp_time_t odp_time_diff (odp_time_t t2, odp_time_t t1)
 Time difference. More...
 
uint64_t odp_time_diff_ns (odp_time_t t2, odp_time_t t1)
 Time difference in nanoseconds. More...
 
odp_time_t odp_time_add_ns (odp_time_t time, uint64_t ns)
 Add nanoseconds into time. More...
 
odp_time_t odp_time_sum (odp_time_t t1, odp_time_t t2)
 Time sum. More...
 
uint64_t odp_time_to_ns (odp_time_t time)
 Convert time to nanoseconds. More...
 
odp_time_t odp_time_local_from_ns (uint64_t ns)
 Convert nanoseconds to local time. More...
 
odp_time_t odp_time_global_from_ns (uint64_t ns)
 Convert nanoseconds to global time. More...
 
int odp_time_cmp (odp_time_t t2, odp_time_t t1)
 Compare two times. More...
 
uint64_t odp_time_local_res (void)
 Local time resolution in hertz. More...
 
uint64_t odp_time_global_res (void)
 Global time resolution in hertz. More...
 
void odp_time_wait_until (odp_time_t time)
 Wait until the specified (wall clock) time has been reached. More...
 
void odp_time_wait_ns (uint64_t ns)
 Wait the specified number of nanoseconds. More...
 
void odp_time_startup (odp_time_startup_t *startup)
 Get ODP instance startup time. More...
 

Detailed Description

ODP time.

Definition in file api/spec/time.h.