]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/chrono/example/clock_name.cpp
1 // stopclock_perf.cpp ---------------------------------------------------//
3 // Copyright 2009 Vicente J. Botet Escriba
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 // See http://www.boost.org/libs/chrono for documentation.
10 #include "clock_name.hpp"
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';
19 std::cout
<< name
<boost::chrono::high_resolution_clock
>::apply() << '\n';