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);
145 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());
bool is_valid() const
Returns true if self is in a valid state!
Definition: Timer.hh:101
double useconds(void) const
Returns measured time in micro seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:130
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56
Timer class.
Definition: Timer.hh:80
double hseconds(void) const
Returns measured time in hundredth seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:124
double seconds(void) const
Returns measured time in seconds, if the timer is in state 'Stopped'.
double mseconds(void) const
Returns measured time in milli seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:127
std::ostream & operator<<(std::ostream &_os, const BaseHandle &_hnd)
Write handle _hnd to stream _os.
Definition: Handles.hh:104
Format
Formatting options for member Timer::as_string()
Definition: Timer.hh:85