SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rt_graph::Timer Class Reference

Public Member Functions

 Timer (std::size_t reserveCount)
 
template<std::size_t N>
auto start (const char(&identifierPtr)[N]) -> void
 
auto start (std::string identifier) -> void
 
template<std::size_t N>
auto stop (const char(&identifierPtr)[N]) -> void
 
auto stop (std::string identifier) -> void
 
auto clear (std::size_t reserveCount) -> void
 
auto reserve (std::size_t reserveCount) -> void
 
auto process () const -> TimingResult
 

Private Member Functions

auto stop_with_ptr (const char *identifierPtr) -> void
 

Private Attributes

friend ScopedTiming
 
std::vector< internal::TimeStamptimeStamps_
 
std::deque< std::string > identifierStrings_
 

Detailed Description

Definition at line 124 of file rt_graph.hpp.

Constructor & Destructor Documentation

◆ Timer() [1/2]

rt_graph::Timer::Timer ( )
inline

Definition at line 127 of file rt_graph.hpp.

◆ Timer() [2/2]

rt_graph::Timer::Timer ( std::size_t  reserveCount)
inlineexplicit

Definition at line 130 of file rt_graph.hpp.

Member Function Documentation

◆ start() [1/2]

template<std::size_t N>
auto rt_graph::Timer::start ( const char(&)  identifierPtr[N]) -> void
inline

Definition at line 134 of file rt_graph.hpp.

◆ start() [2/2]

auto rt_graph::Timer::start ( std::string  identifier) -> void
inline

Definition at line 141 of file rt_graph.hpp.

◆ stop() [1/2]

template<std::size_t N>
auto rt_graph::Timer::stop ( const char(&)  identifierPtr[N]) -> void
inline

Definition at line 150 of file rt_graph.hpp.

◆ stop() [2/2]

auto rt_graph::Timer::stop ( std::string  identifier) -> void
inline

Definition at line 157 of file rt_graph.hpp.

◆ clear()

auto rt_graph::Timer::clear ( std::size_t  reserveCount) -> void
inline

Definition at line 165 of file rt_graph.hpp.

◆ reserve()

auto rt_graph::Timer::reserve ( std::size_t  reserveCount) -> void
inline

Definition at line 172 of file rt_graph.hpp.

◆ process()

auto rt_graph::Timer::process ( ) const -> TimingResult

Definition at line 437 of file rt_graph.cpp.

◆ stop_with_ptr()

auto rt_graph::Timer::stop_with_ptr ( const char *  identifierPtr) -> void
inlineprivate

Definition at line 178 of file rt_graph.hpp.

Member Data Documentation

◆ ScopedTiming

friend rt_graph::Timer::ScopedTiming
private

Definition at line 184 of file rt_graph.hpp.

◆ timeStamps_

std::vector<internal::TimeStamp> rt_graph::Timer::timeStamps_
private

Definition at line 186 of file rt_graph.hpp.

◆ identifierStrings_

std::deque<std::string> rt_graph::Timer::identifierStrings_
private

Definition at line 188 of file rt_graph.hpp.


The documentation for this class was generated from the following files: