Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-25 10:48:00


Author: johnmaddock
Date: 2007-11-25 10:47:58 EST (Sun, 25 Nov 2007)
New Revision: 41359
URL: http://svn.boost.org/trac/boost/changeset/41359

Log:
Oops, previous commit messed up POSIX timing code, now fixed.
Text files modified:
   trunk/libs/regex/example/timer/regex_timer.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/regex/example/timer/regex_timer.cpp
==============================================================================
--- trunk/libs/regex/example/timer/regex_timer.cpp (original)
+++ trunk/libs/regex/example/timer/regex_timer.cpp 2007-11-25 10:47:58 EST (Sun, 25 Nov 2007)
@@ -324,17 +324,17 @@
          iters = 10;
          tim = 1.1;
          // cache load:
- regex_tA(&r, s2.c_str(), nsubs, matches.get(), 0);
+ regexecA(&r, s2.c_str(), nsubs, matches.get(), 0);
          do{
             iters *= (tim > 0.001) ? (1.1/tim) : 100;
             t.restart();
             for(i = 0; i < iters; ++i)
             {
- result = regex_tA(&r, s2.c_str(), nsubs, matches.get(), 0);
+ result = regexecA(&r, s2.c_str(), nsubs, matches.get(), 0);
             }
             tim = t.elapsed();
          }while(tim < wait_time);
- cout << "POSIX regex_tA time: " << (tim * 1000000 / iters) << "us" << endl;
+ cout << "POSIX regexecA time: " << (tim * 1000000 / iters) << "us" << endl;
 
          if(result == 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