Mercurial > hg > svcore
comparison base/test/StressEventSeries.h @ 1697:c077a97d055f single-point
Windows build fixes
author | Chris Cannam |
---|---|
date | Wed, 01 May 2019 21:39:37 +0100 |
parents | b2048f350906 |
children |
comparison
equal
deleted
inserted
replaced
1696:187c76c40c6f | 1697:c077a97d055f |
---|---|
32 void report(int n, QString sort, clock_t start, clock_t end) { | 32 void report(int n, QString sort, clock_t start, clock_t end) { |
33 QString message = QString("Time for %1 %2 events = ").arg(n).arg(sort); | 33 QString message = QString("Time for %1 %2 events = ").arg(n).arg(sort); |
34 cerr << " " << message; | 34 cerr << " " << message; |
35 for (int i = 0; i < 34 - message.size(); ++i) cerr << " "; | 35 for (int i = 0; i < 34 - message.size(); ++i) cerr << " "; |
36 cerr << double(end - start) * 1000.0 / double(CLOCKS_PER_SEC) | 36 cerr << double(end - start) * 1000.0 / double(CLOCKS_PER_SEC) |
37 << "ms" << endl; | 37 << "ms" << std::endl; |
38 } | 38 } |
39 | 39 |
40 void short_n(int n) { | 40 void short_n(int n) { |
41 clock_t start = clock(); | 41 clock_t start = clock(); |
42 std::set<Event> ee; | 42 std::set<Event> ee; |