BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
stopwatch_test.cpp File Reference
#include <iostream>
#include <BoosterSeat/sleep.hpp>
#include <BoosterSeat/stopwatch.hpp>
#include "gtest/gtest.h"
Include dependency graph for stopwatch_test.cpp:

Functions

 TEST (bst_stopwatch, DefaultConstructor)
 
 TEST (bst_stopwatch, IStopwatch)
 
 TEST (bst_stopwatch, KeepsRunningTotal)
 
 TEST (bst_stopwatch, ResetKeepsRunning)
 
 TEST (bst_stopwatch, ResetStopsByDefault)
 
 TEST (bst_stopwatch, SoftwareStopwatch)
 
 TEST (bst_stopwatch, StartAndStop)
 
 TEST (bst_stopwatch, Units)
 

Function Documentation

◆ TEST() [1/8]

TEST ( bst_stopwatch  ,
DefaultConstructor   
)

References bst::Stopwatch::elapsedMicroseconds(), and bst::Stopwatch::isRunning().

Here is the call graph for this function:

◆ TEST() [2/8]

TEST ( bst_stopwatch  ,
StartAndStop   
)

References bst::Stopwatch::isRunning(), bst::Stopwatch::start(), and bst::Stopwatch::stop().

Here is the call graph for this function:

◆ TEST() [3/8]

TEST ( bst_stopwatch  ,
Units   
)

References bst::Stopwatch::elapsedMicrosecondsF(), bst::Stopwatch::elapsedMillisecondsF(), bst::Stopwatch::elapsedSecondsF(), bst::sleep(), bst::Stopwatch::start(), and bst::Stopwatch::stop().

Here is the call graph for this function:

◆ TEST() [4/8]

TEST ( bst_stopwatch  ,
KeepsRunningTotal   
)

References bst::Stopwatch::elapsedSecondsF(), bst::sleep(), bst::Stopwatch::start(), and bst::Stopwatch::stop().

Here is the call graph for this function:

◆ TEST() [5/8]

TEST ( bst_stopwatch  ,
ResetStopsByDefault   
)

References bst::Stopwatch::elapsedMicroseconds(), bst::Stopwatch::isRunning(), bst::Stopwatch::reset(), bst::sleep(), and bst::Stopwatch::start().

Here is the call graph for this function:

◆ TEST() [6/8]

TEST ( bst_stopwatch  ,
ResetKeepsRunning   
)

References bst::Stopwatch::elapsedMicroseconds(), bst::Stopwatch::isRunning(), bst::Stopwatch::reset(), bst::sleep(), and bst::Stopwatch::start().

Here is the call graph for this function:

◆ TEST() [7/8]

TEST ( bst_stopwatch  ,
IStopwatch   
)

References bst::IStopwatch::elapsedMilliseconds(), bst::sleep(), bst::IStopwatch::start(), and bst::IStopwatch::stop().

Here is the call graph for this function:

◆ TEST() [8/8]

TEST ( bst_stopwatch  ,
SoftwareStopwatch   
)

References bst::IStopwatch::elapsedMilliseconds(), bst::IStopwatch::start(), bst::IStopwatch::stop(), and bst::SoftwareStopwatch::tick().

Here is the call graph for this function: