 |
OpenMesh
|
Go to the documentation of this file.
60 #include <OpenMesh/Core/System/config.hh>
64 #if defined(OM_CC_MIPS)
110 bool is_stopped()
const {
return state_==Stopped; }
125 float resolution()
const;
128 double seconds(
void)
const;
131 double hseconds(
void)
const {
return seconds()*1e2; }
134 double mseconds(
void)
const {
return seconds()*1e3; }
137 double useconds(
void)
const {
return seconds()*1e6; }
142 std::string as_string(Format format = Automatic);
147 static std::string as_string(
double seconds, Format format = Automatic);
152 bool operator < (
const Timer& t2)
const
155 assert( is_stopped() && t2.is_stopped() );
156 return (seconds() < t2.
seconds());
159 bool operator > (
const Timer& t2)
const
161 assert( is_stopped() && t2.is_stopped() );
162 return (seconds() > t2.seconds());
165 bool operator == (
const Timer& t2)
const
167 assert( is_stopped() && t2.is_stopped() );
168 return (seconds() == t2.seconds());
171 bool operator <= (
const Timer& t2)
const
173 assert( is_stopped() && t2.is_stopped() );
174 return (seconds() <= t2.seconds());
177 bool operator >=(
const Timer& t2)
const
179 assert( is_stopped() && t2.is_stopped() );
180 return (seconds() >= t2.seconds());
bool is_valid() const
Returns true if self is in a valid state!
Definition: Timer.hh:108
Timer class.
Definition: Timer.hh:87
double mseconds(void) const
Returns measured time in milli seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:134
double useconds(void) const
Returns measured time in micro seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:137
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
double seconds(void) const
Returns measured time in seconds, if the timer is in state 'Stopped'.
Format
Formatting options for member Timer::as_string()
Definition: Timer.hh:92
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
double hseconds(void) const
Returns measured time in hundredth seconds, if the timer is in state 'Stopped'.
Definition: Timer.hh:131
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.