Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
platform_timer_accuracy.cpp File Reference
#include <sysio/chain/platform_timer_accuracy.hpp>
#include <sysio/chain/platform_timer.hpp>
#include <fc/time.hpp>
#include <fc/log/logger.hpp>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/min.hpp>
#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/weighted_mean.hpp>
#include <boost/accumulators/statistics/weighted_variance.hpp>
#include <chrono>
#include <mutex>
Include dependency graph for platform_timer_accuracy.cpp:

Go to the source code of this file.

Namespaces

namespace  sysio
 
namespace  sysio::chain
 

Macros

#define TIMER_STATS_FORMAT   "min:${min}us max:${max}us mean:${mean}us stddev:${stddev}us"
 
#define TIMER_STATS
 

Functions

void sysio::chain::compute_and_print_timer_accuracy (platform_timer &t)
 

Macro Definition Documentation

◆ TIMER_STATS

#define TIMER_STATS
Value:
("min", bacc::min(samples))("max", bacc::max(samples)) \
("mean", (int)bacc::mean(samples))("stddev", (int)sqrt(bacc::variance(samples)))

◆ TIMER_STATS_FORMAT

#define TIMER_STATS_FORMAT   "min:${min}us max:${max}us mean:${mean}us stddev:${stddev}us"