19 #ifndef TRAJ_OPT_PRO_TIMERS_H_
20 #define TRAJ_OPT_PRO_TIMERS_H_
33 start_ = std::chrono::system_clock::now();
36 std::chrono::time_point<std::chrono::system_clock> end;
37 end = std::chrono::system_clock::now();
38 std::chrono::duration<double> dt = end - start_;
39 std::cout << msg_ <<
" took " << dt.count() <<
" seconds!" << std::endl;
44 std::chrono::time_point<std::chrono::system_clock> start_;
50 void tic() { start_ = std::chrono::system_clock::now(); }
52 std::chrono::time_point<std::chrono::system_clock> end;
53 end = std::chrono::system_clock::now();
54 std::chrono::duration<double> dt = end - start_;
59 std::chrono::time_point<std::chrono::system_clock> start_;
62 #endif // TRAJ_OPT_PRO_TIMERS_H_