]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/chrono/example/clock_name.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / chrono / example / clock_name.cpp
1 // stopclock_perf.cpp ---------------------------------------------------//
2
3 // Copyright 2009 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
10 #include "clock_name.hpp"
11 #include <iostream>
12
13 int main()
14 {
15 std::cout << name<boost::chrono::system_clock>::apply() << '\n';
16 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
17 std::cout << name<boost::chrono::steady_clock>::apply() << '\n';
18 #endif
19 std::cout << name<boost::chrono::high_resolution_clock>::apply() << '\n';
20 }