File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Benchmark
25
25
* @return The total accumulated time in seconds
26
26
*/
27
27
template <class T >
28
- explicit operator T () const noexcept
28
+ operator T () const noexcept
29
29
{
30
30
return std::chrono::duration<T>(Clock::duration (m_Sum.load (std::memory_order_relaxed))).count ();
31
31
}
Original file line number Diff line number Diff line change @@ -136,3 +136,13 @@ double Endpoint::GetBytesReceivedPerSecond() const
136
136
{
137
137
return m_BytesReceived.CalculateRate (Utility::GetTime (), 60 );
138
138
}
139
+
140
+ double Endpoint::GetSecondsReadingMessages () const
141
+ {
142
+ return m_InputReadTime;
143
+ }
144
+
145
+ double Endpoint::GetSecondsProcessingMessages () const
146
+ {
147
+ return m_InputProcessTime;
148
+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ class Endpoint final : public ObjectImpl<Endpoint>
57
57
double GetBytesSentPerSecond () const override ;
58
58
double GetBytesReceivedPerSecond () const override ;
59
59
60
+ double GetSecondsReadingMessages () const override ;
61
+ double GetSecondsProcessingMessages () const override ;
62
+
60
63
protected:
61
64
void OnAllConfigLoaded () override ;
62
65
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ class Endpoint : ConfigObject
54
54
[no_user_modify, no_storage] double bytes_received_per_second {
55
55
get;
56
56
};
57
+
58
+ [no_user_modify, no_storage] double seconds_reading_messages {
59
+ get;
60
+ };
61
+
62
+ [no_user_modify, no_storage] double seconds_processing_messages {
63
+ get;
64
+ };
57
65
};
58
66
59
67
}
You can’t perform that action at this time.
0 commit comments