diff --git a/CMakeLists.txt b/CMakeLists.txt index 663e711..7681f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ PROJECT(CeleroProject) include(CheckFunctionExists) include(CheckCXXSourceCompiles) include(CheckIncludeFile) + if(POLICY CMP0042) cmake_policy(SET CMP0042 OLD) # MACOSX_RPATH migration endif() diff --git a/README.md b/README.md index b95855e..ec988ad 100644 --- a/README.md +++ b/README.md @@ -69,17 +69,19 @@ To summarize, this pseudo-code illustrates how the tests are executed internally ```C++ for(Each Experiment) { - // Call the virtual function - experiment->onExperimentStart(x); - for(Each Sample) { // Call the virtual function + // and DO NOT include its time in the measurement. experiment->setUp(); // Start the Timer timer->start(); + // Call the virtual function + // and include its time in the measurement. + experiment->onExperimentStart(x); + // Run all iterations for(Each Iteration) { @@ -87,17 +89,19 @@ for(Each Experiment) experiment->run(threads, iterations, experimentValue); } + // Call the virtual function + // and include its time in the measurement. + experiment->onExperimentEnd(); + // Stop the Timer timer->stop(); // Record data... - // Call the virtual teardown function. + // Call the virtual teardown function + // and DO NOT include its time in the measurement. experiment->tearDown(); } - - // Call the virtual function - experiment->onExperimentEnd(); } ```