LeviLamina
Loading...
Searching...
No Matches
TimeAccumulator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class TimeAccumulator {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<8, 8, uint64> mCount;
10 ::ll::TypedStorage<8, 8, uint64> mNanoseconds;
11 ::ll::TypedStorage<8, 8, uint64> mMaxSample;
12 // NOLINTEND
13
14public:
15 // member functions
16 // NOLINTBEGIN
17 MCAPI TimeAccumulator();
18
19 MCAPI void addTime(::std::chrono::nanoseconds const& time);
20
21 MCFOLD uint64 getCount() const;
22
23 MCAPI float getTimeSumAverageMS() const;
24
25 MCAPI float getTimeSumAverageSeconds() const;
26
27 MCAPI float getTimeSumSeconds() const;
28 // NOLINTEND
29
30public:
31 // constructor thunks
32 // NOLINTBEGIN
33 MCFOLD void* $ctor();
34 // NOLINTEND
35};