scoped_timer.h
Go to the documentation of this file.
00001 #ifndef RGBDSLAM_SCOPED_TIMER_H
00002 #define RGBDSLAM_SCOPED_TIMER_H
00003 #include <ctime>
00004 
00009 class ScopedTimer {
00010   public:
00012     ScopedTimer(const char* name, bool only_for_logging = true, bool unconditional_logging = false);
00014     ~ScopedTimer();
00016     double elapsed();
00017   private:
00018     struct timespec start;
00019     const char* name;
00020     bool unconditional_triggering;
00021 };
00022 
00023 #endif


rgbdslam_v2
Author(s): Felix Endres, Juergen Hess, Nikolas Engelhard
autogenerated on Thu Jun 6 2019 21:49:45