Template Function cras::nanosec

Function Documentation

template<typename T1, typename ::std::enable_if_t<::cras::TimeType<T1>::value>* = nullptr>
uint32_t cras::nanosec(const T1 &t)

Get the fractional second converted to nanoseconds.

Get the fractional second converted to nanoseconds.

Template Parameters:
  • T1 – Time type.

  • T1 – Duration type.

Parameters:
  • t – Time to convert.

  • t – Duration to convert.

Returns:

The number of nanoseconds in the fractional second.

Returns:

The number of nanoseconds in the fractional second.