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