12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef CERES_INTERNAL_WALL_TIME_H_
- #define CERES_INTERNAL_WALL_TIME_H_
- #include <map>
- #include <string>
- #include "ceres/internal/disable_warnings.h"
- #include "ceres/internal/export.h"
- #include "ceres/stringprintf.h"
- #include "glog/logging.h"
- namespace ceres::internal {
- CERES_NO_EXPORT double WallTimeInSeconds();
- class CERES_NO_EXPORT EventLogger {
- public:
- explicit EventLogger(const std::string& logger_name);
- ~EventLogger();
- void AddEvent(const std::string& event_name);
- private:
- double start_time_;
- double last_event_time_;
- std::string events_;
- };
- }
- #include "ceres/internal/reenable_warnings.h"
- #endif
|