Skip to content

Commit

Permalink
Remove unused timing code from testOutputReporter
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Oct 2, 2024
1 parent 8d67de2 commit 3587789
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions OpenSim/Analyses/Test/testOutputReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <OpenSim/Auxiliary/auxiliaryTestFunctions.h>
#include <OpenSim/Analyses/OutputReporter.h>

#include "OpenSim/Common/Logger.h"
#include <catch2/catch_all.hpp>

using namespace OpenSim;
Expand Down Expand Up @@ -197,16 +198,11 @@ void simulateMuscle(
state.setTime(initialTime);
manager.initialize(state);

cout << "\nIntegrating from " << initialTime << " to " << finalTime << endl;
log_info("Integrating from {} to {}", initialTime, finalTime);

// Start timing the simulation
const clock_t start = clock();
// simulate
state = manager.integrate(finalTime);

// how long did it take?
double comp_time = (double)(clock() - start) / CLOCKS_PER_SEC;

//==========================================================================
// 4. Print the results
//==========================================================================
Expand Down

0 comments on commit 3587789

Please sign in to comment.