The code most like
uint64_t nanoseconds = 0;
auto nano = std::chrono::nanoseconds(nanoseconds_);
system_clock::time_point tp(nano);
It report error(QNX):
time.cpp:86:35: error: no matching function for call to 'std::__1::chrono::time_point<std::__1::chrono::system_clock>::time_point(std::__1::chrono::duration<long long int, std::__1::ratio<1l, 1000000000l> >&)
qnx700/target/qnx7/usr/include/c++/v1/chrono:769:5: note: candidate:
template<class _Duration2> std::__1::chrono::time_point<_Clock, _Duration>::time_point(const std::__1::chrono::time_point<_Clock, _Duration2>&,
typename std::__1::enable_if<std::__1::is_convertible<_Duration2,
_Duration>::value>::type*) time_point(const time_point<clock, _Duration2>& t,
^ qnx700/target/qnx7/usr/include/c++/v1/chrono:769:5: note: template argument
deduction/substitution failed: time.cpp:86:35: note:
'std::__1::chrono::duration<long long int, std::__1::ratio<1l, 1000000000l> >'
is not derived from 'const
std::__1::chrono::time_point<std::__1::chrono::system_clock, _Duration2>''
How can I combine std::chrono::nanoseconds
with time_point
Thanks for all.