boost.png (6897 bytes) Timer Library
Version 2
Timer Home    CPU timers    Original timers   

"How long does it take for this C++ code to run?

The Boost Timer library answers that question - portably, and in as little as one #include and one additional line of code.

The Boost Timer library has two distinct sets of components.

If you are new to the library, please go directly to the version 2 CPU timers page.

If you are interested in the original library, now deprecated, read on below.

CPU timers

These version 2 components conform to current Boost practice:

Original timers

These version 1 components are deprecated. They date from the earliest days of Boost and do not conform to current Boost practice:

Copyright Beman Dawes  2001, 2011

Distributed under the Boost Software License, Version 1.0. See

Revised 27 September 2011