API Reference Manual 1.51.0
Loading...
Searching...
No Matches
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.
 
uint64_t odp_time_local_ns (void)
 Current local time in nanoseconds.
 
odp_time_t odp_time_local_strict (void)
 Current local time (strict)
 
uint64_t odp_time_local_strict_ns (void)
 Current local time in nanoseconds (strict)
 
odp_time_t odp_time_global (void)
 Current global time.
 
uint64_t odp_time_global_ns (void)
 Current global time in nanoseconds.
 
odp_time_t odp_time_global_strict (void)
 Current global time (strict)
 
uint64_t odp_time_global_strict_ns (void)
 Current global time in nanoseconds (strict)
 
odp_time_t odp_time_diff (odp_time_t t2, odp_time_t t1)
 Time difference.
 
uint64_t odp_time_diff_ns (odp_time_t t2, odp_time_t t1)
 Time difference in nanoseconds.
 
odp_time_t odp_time_add_ns (odp_time_t time, uint64_t ns)
 Add nanoseconds into time.
 
odp_time_t odp_time_sum (odp_time_t t1, odp_time_t t2)
 Time sum.
 
uint64_t odp_time_to_ns (odp_time_t time)
 Convert time to nanoseconds.
 
odp_time_t odp_time_local_from_ns (uint64_t ns)
 Convert nanoseconds to local time.
 
odp_time_t odp_time_global_from_ns (uint64_t ns)
 Convert nanoseconds to global time.
 
int odp_time_cmp (odp_time_t t2, odp_time_t t1)
 Compare two times.
 
uint64_t odp_time_local_res (void)
 Local time resolution in hertz.
 
uint64_t odp_time_global_res (void)
 Global time resolution in hertz.
 
void odp_time_wait_until (odp_time_t time)
 Wait until the specified (wall clock) time has been reached.
 
void odp_time_wait_ns (uint64_t ns)
 Wait the specified number of nanoseconds.
 
void odp_time_startup (odp_time_startup_t *startup)
 Get ODP instance startup time.
 

Detailed Description

ODP time.

Definition in file api/spec/time.h.