Update perf/

This commit is contained in:
Peter Dimov 2024-09-04 13:22:10 +03:00
parent d375ae27fa
commit 2a74a53f27
2 changed files with 5 additions and 4 deletions

View File

@ -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 )

View File

@ -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;
}