• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
main()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 }
21