[/ / Copyright (c) 2009-20012 Vicente J. Botet Escriba / / Distributed under the Boost Software License, Version 1.0. (See accompanying / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) /] [/=====================] [/section Hello World! ] [/=====================] If all you want to do is to time a program's execution, here is a complete program (stopclock_example.cpp): #include #include #include int main() { boost::chrono::system_strict_stopclock _; for ( long i = 0; i < 10000000; ++i ) std::sqrt( 123.456L ); // burn some time return 0; } Output was: 0.832 seconds