Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Public Member Functions
TSQR::TrivialTimer Class Reference

Satisfies TimerType concept trivially. More...

#include <Tsqr_TrivialTimer.hpp>

List of all members.

Public Member Functions

 TrivialTimer (const std::string &theName, bool doStart=false)
void start (bool reset=false)
 Start the timer.
double stop ()
 Stop the timer and return (fake) elapsed time.
bool isRunning () const
 Whether this timer is running.
const std::string & name () const
 Name of this timer object.

Detailed Description

Satisfies TimerType concept trivially.

This is a "prototype" for the TimerType concept; it satisfies the concept trivially.

Definition at line 59 of file Tsqr_TrivialTimer.hpp.

Constructor & Destructor Documentation

TSQR::TrivialTimer::TrivialTimer ( const std::string &  theName,
bool  doStart = false 


name[in] Timer label
doStart[in] Whether to start timer on instantiation

Definition at line 49 of file Tsqr_TrivialTimer.cpp.

Member Function Documentation

void TSQR::TrivialTimer::start ( bool  reset = false)

Start the timer.

This is a trivial timer, so this implementation does not actually return valid times. However, it satisfies our TimerType concept.

Definition at line 63 of file Tsqr_TrivialTimer.cpp.

double TSQR::TrivialTimer::stop ( )

Stop the timer and return (fake) elapsed time.

Definition at line 69 of file Tsqr_TrivialTimer.cpp.

bool TSQR::TrivialTimer::isRunning ( ) const [inline]

Whether this timer is running.

Definition at line 78 of file Tsqr_TrivialTimer.hpp.

const std::string& TSQR::TrivialTimer::name ( ) const [inline]

Name of this timer object.

Definition at line 81 of file Tsqr_TrivialTimer.hpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends