summaryrefslogtreecommitdiff
path: root/src/util/statistics_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/statistics_registry.h')
-rw-r--r--src/util/statistics_registry.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/statistics_registry.h b/src/util/statistics_registry.h
index 6e74357c6..3de001e32 100644
--- a/src/util/statistics_registry.h
+++ b/src/util/statistics_registry.h
@@ -720,13 +720,8 @@ public:
* Construct a timer statistic with the given name. Newly-constructed
* timers have a 0.0 value and are not running.
*/
- TimerStat(const std::string& name) :
- BackedStat< timespec >(name, timespec()),
- d_running(false) {
- /* timespec is POD and so may not be initialized to zero;
- * here, ensure it is */
- d_data.tv_sec = d_data.tv_nsec = 0;
- }
+ TimerStat(const std::string& name)
+ : BackedStat<timespec>(name, {0, 0}), d_start{0, 0}, d_running(false) {}
/** Start the timer. */
void start();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback