|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75827 - trunk/libs/chrono/perf
From: vicente.botet_at_[hidden]
Date: 2011-12-06 12:03:12
Author: viboes
Date: 2011-12-06 12:03:11 EST (Tue, 06 Dec 2011)
New Revision: 75827
URL: http://svn.boost.org/trac/boost/changeset/75827
Log:
Chrono: Adapt Jamfile to version 2
Text files modified:
trunk/libs/chrono/perf/Jamfile.v2 | 5 +++--
trunk/libs/chrono/perf/no_check.cpp | 28 ++++++++++++++--------------
2 files changed, 17 insertions(+), 16 deletions(-)
Modified: trunk/libs/chrono/perf/Jamfile.v2
==============================================================================
--- trunk/libs/chrono/perf/Jamfile.v2 (original)
+++ trunk/libs/chrono/perf/Jamfile.v2 2011-12-06 12:03:11 EST (Tue, 06 Dec 2011)
@@ -42,6 +42,7 @@
# remark #383: value copied to temporary, reference to temporary used
# remark #1418: external function definition with no prior declaration
<toolset>intel:<cxxflags>-wd304,383,1418
+ <define>BOOST_CHRONO_VERSION=2
;
rule chrono-run ( sources )
@@ -165,7 +166,7 @@
test-suite "perf"
:
[ chrono-run store_now_in_vector.cpp ]
- [ chrono-run is_leap.cpp ]
- [ chrono-run no_check.cpp ]
+ #[ chrono-run is_leap.cpp ]
+ #[ chrono-run no_check.cpp ]
;
Modified: trunk/libs/chrono/perf/no_check.cpp
==============================================================================
--- trunk/libs/chrono/perf/no_check.cpp (original)
+++ trunk/libs/chrono/perf/no_check.cpp 2011-12-06 12:03:11 EST (Tue, 06 Dec 2011)
@@ -8,7 +8,7 @@
#include <boost/chrono/date/date.hpp>
using namespace boost::chrono;
-const int times = 100;
+const int tms = 100;
int main()
{
typedef boost::chrono::high_resolution_clock Clock;
@@ -17,7 +17,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
cnt += y+x;
@@ -30,7 +30,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y,no_check);
@@ -44,7 +44,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y);
@@ -59,7 +59,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
cnt += y+x;
@@ -72,7 +72,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y,no_check);
@@ -86,7 +86,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y);
@@ -101,7 +101,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
cnt += y+x;
@@ -114,7 +114,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y,no_check);
@@ -128,7 +128,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y);
@@ -143,7 +143,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
cnt += y+x;
@@ -158,7 +158,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y,no_check);
@@ -174,7 +174,7 @@
{
int cnt = 0;
Clock::time_point t0 = Clock::now();
- for (int x = 0; x < times; ++x)
+ for (int x = 0; x < tms; ++x)
for (int y = -32768; y <= 32767; ++y)
{
//year aYear(y);
@@ -189,6 +189,6 @@
std::cout << " check-none: " << (check_d-none_d) << "\n";
std::cout << " no_check-none: " << (no_check_d-none_d) << "\n";
- return 1;
+ return 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk