<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi!</div><div class=""><br class=""></div><div class="">Given nanoseconds-to-seconds conversion includes information truncation, you would need to explicitly specify this intention using duration_cast method (you can check more about duration_cast in Boost.Chrono documentation <a href="http://www.boost.org/doc/libs/1_57_0/doc/html/chrono/users_guide.html" class="">http://www.boost.org/doc/libs/1_57_0/doc/html/chrono/users_guide.html</a> or in std::chrono docs <a href="http://en.cppreference.com/w/cpp/chrono/duration/duration_cast" class="">http://en.cppreference.com/w/cpp/chrono/duration/duration_cast</a>):</div><div class=""><br class=""></div><div class="">There is also a small problem with your example. time::steady_clock::now() returns a so called “time point” (time duration since some fixed epoch).  More correct example would look similar to:</div><div class=""><br class=""></div><div class=""><div class="">  ::ndn::time::steady_clock::TimePoint now = ::ndn::time::steady_clock::now();</div><div class="">  ::ndn::time::seconds sec = ::ndn::time::duration_cast<::ndn::time::seconds>(now.time_since_epoch());</div></div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 24, 2015, at 6:48 AM, 최원준 <<a href="mailto:wonjunchoi001@gmail.com" class="">wonjunchoi001@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello.<div class=""><br class=""></div><div class="">How can I convert from nanoseconds to seconds?</div><div class="">time::nanoseconds time= time::steady_clock::now()<br class=""></div><div class="">time.getseconds() is not working.</div><div class=""><br class=""></div><div class="">Best regards.</div><div class="">Wonjun, Choi</div></div></div></blockquote></div><br class=""></body></html>