• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
main()15 int main()
16 {
17   boost::chrono::steady_clock::time_point t1=boost::chrono::steady_clock::now();
18   another();
19   boost::chrono::steady_clock::time_point t2=boost::chrono::steady_clock::now();
20   std::cout << t2-t1 << std::endl;
21   return 0;
22 }
23 
24