2
0
mirror of https://github.com/boostorg/chrono.git synced 2026-02-01 20:32:18 +00:00

Chrono/Stopwathes: Rename main stopwatches classes

[SVN r79029]
This commit is contained in:
Vicente J. Botet Escriba
2012-06-21 21:11:08 +00:00
parent d48ff8a202
commit db5ec2bb30
15 changed files with 1211 additions and 167 deletions

View File

@@ -6,7 +6,7 @@
// See http://www.boost.org/libs/chrono/stopwatches for documentation.
//#include <iostream>
#include <boost/chrono/stopwatches/simple_stopwatch.hpp>
#include <boost/chrono/stopwatches/strict_stopwatch.hpp>
#include <boost/chrono/chrono_io.hpp>
#include <boost/chrono/process_cpu_clocks.hpp>
#include <cmath>
@@ -35,7 +35,7 @@ namespace ex
int f1(long j)
{
simple_stopwatch<clock_type> sw;
strict_stopwatch<clock_type> sw;
for ( long i = 0; i < j; ++i )
std::sqrt( 123.456L ); // burn some time
@@ -46,7 +46,7 @@ int f1(long j)
}
int main()
{
simple_stopwatch<clock_type> sw;
strict_stopwatch<clock_type> sw;
f1(1000);
f1(2000);