Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix

  • Loading branch information...
commit db770f7f0d6f3cb2643b2ddbf50f85375d02df24 1 parent 701ae15
@nsanch nsanch authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  benchmark.cpp
View
3  benchmark.cpp
@@ -7,6 +7,7 @@
#include <cstdlib>
#include <vector>
#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/date_time/posix_time/posix_time_duration.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include <boost/signals2/mutex.hpp>
#include <boost/bind.hpp>
@@ -659,7 +660,7 @@ namespace FSTests {
void run(int threadId, int seconds){
boost::posix_time::ptime startTime = boost::posix_time::microsec_clock::universal_time();
- boost::posix_time::ptime endTime = startTime + (seconds * 1000 * 1000);
+ boost::posix_time::ptime endTime = startTime + boost::posix_time::seconds(seconds);
int iters = 0;
while (boost::posix_time::microsec_clock::universal_time() < endTime) {
findOne(threadId, BSON("_id" << threadId + iters));

0 comments on commit db770f7

Please sign in to comment.
Something went wrong with that request. Please try again.