logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mlx5dv_ts_to_ns - Convert device timestamp from HCA core clock units to the corresponding nanosecond

Authors

Feras Daoud <ferasda@mellanox.com> 1.0.0 2017-11-08 MLX5DV_TS_TO_NS(3)

Description

mlx5dv_ts_to_ns(3) Converts a host byte order device_timestamp from HCA core clock units into the corresponding nanosecond wallclock time. structmlx5dv_clock_info can be retrieved using mlx5dv_get_clock_info(3). The greater the difference between the device reporting a timestamp and the last mlx5dv_clock_info update, the greater the inaccuracy of the clock time conversion.

Name

mlx5dv_ts_to_ns - Convert device timestamp from HCA core clock units to the corresponding nanosecond counts

Return Value

Timestamp in nanoseconds

See Also

mlx5dv(7), mlx5dv_get_clock_info(3), mlx5dv_query_device(3)

Synopsis

#include<infiniband/mlx5dv.h>uint64_tmlx5dv_ts_to_ns(structmlx5dv_clock_info*clock_info,uint64_tdevice_timestamp);

See Also