Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Timer Class Reference

#include <catch_timer.h>

Public Member Functions

void start ()
 
auto getElapsedNanoseconds () const -> uint64_t
 
auto getElapsedMicroseconds () const -> uint64_t
 
auto getElapsedMilliseconds () const -> unsigned int
 
auto getElapsedSeconds () const -> double
 
void start ()
 
auto getElapsedNanoseconds () const -> uint64_t
 
auto getElapsedMicroseconds () const -> uint64_t
 
auto getElapsedMilliseconds () const -> unsigned int
 
auto getElapsedSeconds () const -> double
 

Detailed Description

Definition at line 2518 of file catch.hpp.

Member Function Documentation

◆ getElapsedMicroseconds() [1/2]

auto Catch::Timer::getElapsedMicroseconds ( ) const -> uint64_t

Definition at line 63 of file catch_timer.cpp.

63 {
64 return getElapsedNanoseconds()/1000;
65 }
auto getElapsedNanoseconds() const -> uint64_t
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedMicroseconds() [2/2]

auto Catch::Timer::getElapsedMicroseconds ( ) const -> uint64_t

◆ getElapsedMilliseconds() [1/2]

auto Catch::Timer::getElapsedMilliseconds ( ) const -> unsigned int

Definition at line 66 of file catch_timer.cpp.

66 {
67 return static_cast<unsigned int>(getElapsedMicroseconds()/1000);
68 }
auto getElapsedMicroseconds() const -> uint64_t
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedMilliseconds() [2/2]

auto Catch::Timer::getElapsedMilliseconds ( ) const -> unsigned int

◆ getElapsedNanoseconds() [1/2]

auto Catch::Timer::getElapsedNanoseconds ( ) const -> uint64_t

Definition at line 60 of file catch_timer.cpp.

60 {
61 return getCurrentNanosecondsSinceEpoch() - m_nanoseconds;
62 }
auto getCurrentNanosecondsSinceEpoch() -> uint64_t
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedNanoseconds() [2/2]

auto Catch::Timer::getElapsedNanoseconds ( ) const -> uint64_t

◆ getElapsedSeconds() [1/2]

auto Catch::Timer::getElapsedSeconds ( ) const -> double

Definition at line 69 of file catch_timer.cpp.

69 {
70 return getElapsedMicroseconds()/1000000.0;
71 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedSeconds() [2/2]

auto Catch::Timer::getElapsedSeconds ( ) const -> double

◆ start() [1/2]

void Catch::Timer::start ( )

Definition at line 57 of file catch_timer.cpp.

57 {
58 m_nanoseconds = getCurrentNanosecondsSinceEpoch();
59 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start() [2/2]

void Catch::Timer::start ( )

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