mirror of
https://github.com/boostorg/chrono.git
synced 2025-05-09 23:04:05 +00:00
Update perf/
This commit is contained in:
parent
d375ae27fa
commit
2a74a53f27
@ -42,7 +42,7 @@ project
|
||||
# remark #1418: external function definition with no prior declaration
|
||||
<toolset>intel:<cxxflags>-wd304,383,1418
|
||||
<define>BOOST_CHRONO_VERSION=2
|
||||
<include>../example
|
||||
<include>.
|
||||
;
|
||||
|
||||
rule chrono-run ( sources )
|
||||
|
@ -4,11 +4,12 @@
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include "../example/timer.hpp"
|
||||
#include <boost/chrono/chrono.hpp>
|
||||
#include <boost/chrono/chrono_io.hpp>
|
||||
#include <timer.hpp>
|
||||
#include <boost/chrono/process_cpu_clocks.hpp>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
//#define BOOST_CHRONO_HAS_TIMES_AND_CLOCK
|
||||
|
||||
@ -21,7 +22,7 @@
|
||||
|
||||
static const std::size_t size = 1000000;
|
||||
|
||||
typedef boost::chrono::timer<boost::chrono::high_resolution_clock> Stopwatch;
|
||||
typedef boost_ex::chrono::timer<boost::chrono::high_resolution_clock> Stopwatch;
|
||||
|
||||
template <typename Clock>
|
||||
void perf_constant(std::vector<typename Clock::time_point>& vec)
|
||||
@ -149,5 +150,5 @@ int main() {
|
||||
std::cout << "clock ";
|
||||
test3();
|
||||
#endif
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user