Nektar++
|
#include <Timer.h>
Public Types | |
typedef timespec | CounterType |
Public Member Functions | |
Timer () | |
~Timer () | |
void | Start () |
void | Stop () |
CounterType | Elapsed () |
NekDouble | TimePerTest (unsigned int n) |
Returns amount of seconds per iteration in a test with n iterations. |
Private Member Functions | |
Timer (const Timer &rhs) | |
Timer & | operator= (const Timer &rhs) |
Private Attributes | |
CounterType | m_start |
CounterType | m_end |
CounterType | m_resolution |
typedef timespec Nektar::Timer::CounterType |
Nektar::Timer::Timer | ( | ) |
|
private |
Timer::CounterType Nektar::Timer::Elapsed | ( | ) |
Definition at line 73 of file Timer.cpp.
References m_end, and m_start.
Referenced by TimePerTest().
void Nektar::Timer::Start | ( | ) |
Definition at line 51 of file Timer.cpp.
References m_start.
Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::Evaluate(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoint(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoints(), Nektar::CoupledLinearNS::SetUpCoupledMatrix(), Nektar::CoupledLinearNS::SolveSteadyNavierStokes(), Nektar::SolverUtils::UnsteadySystem::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), and Nektar::CoupledLinearNS::v_DoSolve().
void Nektar::Timer::Stop | ( | ) |
Definition at line 62 of file Timer.cpp.
References m_end.
Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::Evaluate(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoint(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoints(), Nektar::CoupledLinearNS::SetUpCoupledMatrix(), Nektar::CoupledLinearNS::SolveSteadyNavierStokes(), Nektar::SolverUtils::UnsteadySystem::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), and Nektar::CoupledLinearNS::v_DoSolve().
NekDouble Nektar::Timer::TimePerTest | ( | unsigned int | n | ) |
Returns amount of seconds per iteration in a test with n iterations.
Definition at line 108 of file Timer.cpp.
References Elapsed().
Referenced by Nektar::LibUtilities::AnalyticExpressionEvaluator::Evaluate(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoint(), Nektar::LibUtilities::AnalyticExpressionEvaluator::EvaluateAtPoints(), Nektar::CoupledLinearNS::SetUpCoupledMatrix(), Nektar::CoupledLinearNS::SolveSteadyNavierStokes(), Nektar::SolverUtils::UnsteadySystem::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), and Nektar::CoupledLinearNS::v_DoSolve().
|
private |
|
private |
|
private |