46 #ifndef ILQGAMES_UTILS_LOOP_TIMER_H 47 #define ILQGAMES_UTILS_LOOP_TIMER_H 49 #include <ilqgames/utils/types.h> 51 #include <glog/logging.h> 61 : max_samples_(max_samples), total_time_(0.0) {
62 CHECK_GT(max_samples, 1);
74 Time RuntimeUpperBound(
float num_stddevs = 3.0,
75 Time initial_guess = 0.02)
const;
79 const size_t max_samples_;
82 std::chrono::time_point<std::chrono::high_resolution_clock> start_;
85 std::list<Time> loop_times_;