base
TimeMark.hpp
Go to the documentation of this file.
1 #ifndef BASE_TIMEMARK_H__
2 #define BASE_TIMEMARK_H__
3 
4 #include <string>
5 #include <base/Time.hpp>
6 
7 namespace base {
8 
9 struct TimeMark
10 {
11  std::string label;
13  clock_t clock;
14 
15  TimeMark(const std::string& label);
16 
18  Time passed() const;
19 
20  clock_t cycles() const;
21 };
22 
23 
24 std::ostream &operator<<(std::ostream &stream, const TimeMark &ob);
25 
26 } // namespace base
27 
28 
29 #endif
std::ostream & operator<<(std::ostream &os, Angle angle)
Definition: Angle.cpp:25
Definition: TimeMark.hpp:9
std::string label
Definition: TimeMark.hpp:11
TimeMark(const std::string &label)
Definition: TimeMark.cpp:5
clock_t cycles() const
Definition: TimeMark.cpp:15
Definition: Time.hpp:11
Time passed() const
Definition: TimeMark.cpp:10
Definition: LinearAngular6DCommand.hpp:8
Time mark
Definition: TimeMark.hpp:12
clock_t clock
Definition: TimeMark.hpp:13