OpenMesh.Tools.Utils.Timer
- class
Timer
;
-
Timer
class
- enum
Format
;
- Formatting options for member Timer.as_string()
- bool
is_valid
();
- Returns true if self is in a valid state!
- void
reset
();
- Reset the timer
- void
start
();
- Start measurement
- void
stop
();
- Stop measurement
- void
cont
();
- Continue measurement
- float
resolution
();
- Give
resolution
of timer. Depends on the underlying measurement method.
- double
seconds
();
- Returns measured time in
seconds
, if the timer is in state 'Stopped'
- double
hseconds
();
- Returns measured time in hundredth seconds, if the timer is in state 'Stopped'
- double
mseconds
();
- Returns measured time in milli seconds, if the timer is in state 'Stopped'
- double
useconds
();
- Returns measured time in micro seconds, if the timer is in state 'Stopped'
- char[]
as_string
(Format format = cast(Format)0);
- Returns the measured time as a string. Use the format flags to specify
a wanted resolution.
- static char[]
as_string
(double seconds, Format format = cast(Format)0);
- Returns a given measured time as a string. Use the format flags to
specify a wanted resolution.
- char[]
toString
();
- Write seconds to output stream.
Timer must be stopped before.
\relates Timer
- int
opCmp
(ref Timer t2);
- Compare timer values
|