MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_timespec_to_ns

Function rte_timespec_to_ns

dpdk/lib/eal/include/rte_time.h:82–86  ·  view source on GitHub ↗

* Convert from timespec structure into nanosecond units. */

Source from the content-addressed store, hash-verified

80 * Convert from timespec structure into nanosecond units.
81 */
82static inline uint64_t
83rte_timespec_to_ns(const struct timespec *ts)
84{
85 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec;
86}
87
88/**
89 * Convert from nanosecond units into timespec structure.

Callers 13

rte_pcapng_fdopenFunction · 0.85
igb_timesync_write_timeFunction · 0.85
ngbe_timesync_write_timeFunction · 0.85
axgbe_timesync_enableFunction · 0.85
ice_timesync_write_timeFunction · 0.85
bnxt_timesync_write_timeFunction · 0.85
i40e_timesync_write_timeFunction · 0.85

Calls

no outgoing calls

Tested by 1

current_timestampFunction · 0.68