Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include "Teuchos_CTimeMonitor.h"
#include "Teuchos_TimeMonitor.hpp"
#include "Teuchos_implicit_cast.hpp"
#include "Teuchos_StandardCatchMacros.hpp"
#include "Teuchos_VerboseObject.hpp"
#include "Teuchos_CompilerCodeTweakMacros.hpp"
Go to the source code of this file.
Functions | |
int | Teuchos_startTimer (char timerName[], int timerID) |
Start a timer with a given name and ID. More... | |
void | Teuchos_stopTimer (int timerID) |
Stop a timer that was started with Teuchos_startTimer() . More... | |
int Teuchos_startTimer | ( | char | timerName[], |
int | timerID | ||
) |
Start a timer with a given name and ID.
timerName | [in] Globally unique null-terminated string name of the timer. This is only significant on the first call. |
timerID | [in] On first call, timerID should be less than 0 On future calls, it should be what was returned by the first call. |
returnVal
gives the ID of a newly created timer of the given globally unique name timerName
. On future calls, returnVal==timerID
.Teuchos_stopTimer()
before you can call this function to start it again. Definition at line 60 of file Teuchos_CTimeMonitor.cpp.
void Teuchos_stopTimer | ( | int | timerID | ) |
Stop a timer that was started with Teuchos_startTimer()
.
timerID | [in] Must be the ID returned from a prior call to Teuchos_startTimer() . |
Preconditions:
timerID >= 0
and it must have been created by a prior call to Teuchos_startTimer()
. Definition at line 95 of file Teuchos_CTimeMonitor.cpp.