1 #ifndef UTILITIES_TIMING_GENTIMER_H
2 #define UTILITIES_TIMING_GENTIMER_H
14 typedef typename Time::IntervalType
T;
33 double seconds()
const {
return Time::oneTick()*
it; }
44 std::ostream & operator<<(std::ostream & o, const GenTimeInterval<Time> &
t) {
45 return o <<
t.seconds() <<
" seconds";
69 for (
unsigned int i=0;
i<
n;
i++) {
72 mes = it.
lap().seconds()/double(n);
77 static double bias(
bool insec=
true,
unsigned int n=5000) {
78 static const Bias it(
n);
79 return insec ? it.mes : double(it.met) ;
122 inline typename Time::TimeInterval
lap()
const {
159 #endif // UTILITIES_TIMING_GENTIMER_H
static double bias(bool insec=true, unsigned int n=5000)
long long int IntervalType
GenTimeInterval< DummyTime > TimeInterval
static double ticksInSec()
double microseconds() const
Time::IntervalType IntervalType
Time::TimeInterval lap() const
Time::IntervalType elapsed
const IntervalType & ticks() const
GenTimeInterval & operator=(IntervalType i)
GenTimer< DummyTime > DummyTimer
Time::TimeInterval TimeInterval
GenTimer(int ipid)
from known context
Bias(unsigned int n=5000)
static TimeType time(int)
GenTimeInterval(IntervalType i=0)
Time::IntervalType IntervalType