53 #include <OpenMesh/Core/System/config.hh>
57 #if defined(OM_CC_MIPS)
103 bool is_stopped()
const {
return state_==Stopped; }
118 float resolution()
const;
121 double seconds(
void)
const;
124 double hseconds(
void)
const {
return seconds()*1e2; }
127 double mseconds(
void)
const {
return seconds()*1e3; }
130 double useconds(
void)
const {
return seconds()*1e6; }
135 std::string as_string(Format format = Automatic);
140 static std::string as_string(
double seconds, Format format = Automatic);
146 bool operator < (
const Timer& t2)
const
148 assert( is_stopped() && t2.is_stopped() );
149 return (seconds() < t2.
seconds());
152 bool operator > (
const Timer& t2)
const
154 assert( is_stopped() && t2.is_stopped() );
155 return (seconds() > t2.
seconds());
158 bool operator == (
const Timer& t2)
const
160 assert( is_stopped() && t2.is_stopped() );
161 return (seconds() == t2.
seconds());
164 bool operator <= (
const Timer& t2)
const
166 assert( is_stopped() && t2.is_stopped() );
167 return (seconds() <= t2.
seconds());
170 bool operator >=(
const Timer& t2)
const
172 assert( is_stopped() && t2.is_stopped() );
173 return (seconds() >= t2.
seconds());