2 / Copyright (c) 2009-20012 Vicente J. Botet Escriba
4 / Distributed under the Boost Software License, Version 1.0. (See accompanying
5 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 [/=====================]
10 [/section Hello World! ]
11 [/=====================]
13 If all you want to do is to time a program's execution, here is a complete program (stopclock_example.cpp):
15 #include <boost/chrono_io.hpp>
16 #include <boost/chrono/stopwatches/reporters/stopclock.hpp>
21 boost::chrono::system_strict_stopclock _;
23 for ( long i = 0; i < 10000000; ++i )
24 std::sqrt( 123.456L ); // burn some time