28 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 30 # define MR_DllDeclare __declspec( dllexport ) 32 # define MR_DllDeclare __declspec( dllimport ) 35 # define MR_DllDeclare 51 name(name), elapsed(elapsed) { }
52 Lap(
const Lap &o) =
default;
53 Lap(
Lap &&o) noexcept =
default;
55 Lap &operator=(
const Lap &o) =
default;
56 Lap &operator=(
Lap &&lap) =
default;
70 std::for_each(laps.cbegin(), laps.cend(), fn);
74 Duration NextLap(
const std::string &name);
Definition: Stopwatch.h:48
Duration elapsed
Definition: Stopwatch.h:59
std::shared_ptr< Clock > clock
Definition: Stopwatch.h:77
Duration lastLap
Definition: Stopwatch.h:78
void ForEachLap(Fn fn)
Definition: Stopwatch.h:68
std::vector< Lap > laps
Definition: Stopwatch.h:79
std::string name
Definition: Stopwatch.h:58
Records lap times.
Definition: Stopwatch.h:45
Definition: Announcement.h:24
#define MR_DllDeclare
Definition: Stopwatch.h:35
Lap(const std::string &name, const Duration &elapsed)
Definition: Stopwatch.h:50
The relative time between two timestamps.
Definition: Duration.h:49