60 #include <OpenMesh/Core/System/config.hh> 64 #if defined(OM_CC_MIPS) 113 bool is_stopped()
const {
return state_==Stopped; }
128 float resolution()
const;
131 double seconds(
void)
const;
134 double hseconds(
void)
const {
return seconds()*1e2; }
137 double mseconds(
void)
const {
return seconds()*1e3; }
140 double useconds(
void)
const {
return seconds()*1e6; }
145 std::string as_string(
Format format = Automatic);
150 static std::string as_string(
double seconds,
Format format = Automatic);
155 bool operator < (
const Timer& t2)
const 158 assert( is_stopped() && t2.is_stopped() );
159 return (seconds() < t2.
seconds());
162 bool operator > (
const Timer& t2)
const 164 assert( is_stopped() && t2.is_stopped() );
165 return (seconds() > t2.
seconds());
168 bool operator == (
const Timer& t2)
const 170 assert( is_stopped() && t2.is_stopped() );
171 return (seconds() == t2.
seconds());
174 bool operator <= (
const Timer& t2)
const 176 assert( is_stopped() && t2.is_stopped() );
177 return (seconds() <= t2.
seconds());
180 bool operator >=(
const Timer& t2)
const 182 assert( is_stopped() && t2.is_stopped() );
183 return (seconds() >= t2.
seconds());
double useconds(void) const
Returns measured time in micro seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:140
auto operator<<(std::ostream &os, const VectorT< Scalar, DIM > &_vec) -> typename std::enable_if< sizeof(decltype(os<< _vec[0])) >=0
output a vector by printing its space-separated compontens
Timer class.
Definition: Timer.hh:87
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
Format
Formatting options for member Timer::as_string()
Definition: Timer.hh:92
bool is_valid() const
Returns true if self is in a valid state!
Definition: Timer.hh:111
double seconds(void) const
Returns measured time in seconds, if the timer is in state 'Stopped'.
double hseconds(void) const
Returns measured time in hundredth seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:134
double mseconds(void) const
Returns measured time in milli seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:137