another_obj.cpp 619 B

12345678910111213141516171819
  1. // boost win32_test.cpp -----------------------------------------------------//
  2. // Copyright 2010 Vicente J. Botet Escriba
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. // See http://www.boost.org/libs/chrono for documentation.
  6. #include <iostream>
  7. #include <boost/chrono/chrono.hpp>
  8. #include <boost/chrono/chrono_io.hpp>
  9. void another() {
  10. boost::chrono::steady_clock::time_point t1=boost::chrono::steady_clock::now();
  11. boost::chrono::steady_clock::time_point t2=boost::chrono::steady_clock::now();
  12. std::cout << t2-t1 << std::endl;
  13. return ;
  14. }