]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // boost/chrono/stopwatches/dont.hpp ------------------------------------------------------------// |
2 | // Copyright 2011 Vicente J. Botet Escriba | |
3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | // See http://www.boost.org/libs/libs/chrono/stopwatches for documentation. | |
6 | ||
7 | #ifndef BOOST_CHRONO_STOPWATCHES_DONT_START__HPP | |
8 | #define BOOST_CHRONO_STOPWATCHES_DONT_START__HPP | |
9 | ||
10 | namespace boost | |
11 | { | |
12 | namespace chrono | |
13 | { | |
14 | ||
15 | /** | |
16 | * Type used to don't start a basic_stopwatch at construction time. | |
17 | */ | |
18 | struct dont_start_t | |
19 | { | |
20 | }; | |
21 | ||
22 | /** | |
23 | * Instance used to don't start a basic_stopwatch at construction time. | |
24 | */ | |
25 | static const dont_start_t dont_start = | |
26 | { }; | |
27 | ||
28 | ||
29 | } // namespace chrono | |
30 | } // namespace boost | |
31 | ||
32 | #endif |