37#include "DGtal/base/Common.h"
38#include "DGtal/base/Clock.h"
53 trace.
info() <<
"Minimal tick: "<< tick <<endl;
64 for (
unsigned int i=0 ; i< 4334450; i++)
68 trace.
info()<<
"Loop tick: "<< tick <<endl;
75 double tick1,tick2,tick3,tmp=0;
81 for (
unsigned int i=0 ; i< 43350; i++)
85 for (
unsigned int i=0 ; i< 43350; i++)
90 for (
unsigned int i=0 ; i< 43450; i++)
93 tick1 = c.stopClock();
97 <<
" Loop tick2: "<< tick2
98 <<
" total: "<< tick3 <<endl;
99 return ((tick3 >= tick1) && (tick1 >= 0));
106 double tick_total=0., tick_accum=0.;
107 Clock c_total, c_accum;
114 for (
unsigned int i=0 ; i< 43350; i++)
119 for (
unsigned int i=0 ; i< 43350; i++)
124 for (
unsigned int i=0 ; i< 43350; i++)
131 double delta = tick_total-tick_accum;
133 trace.
info()<<
"Loop tick_total: " << tick_total
134 <<
" Loop tick_accum: " << tick_accum
135 <<
" Delta = "<<delta << endl;
DGtal is the top-level namespace which contains all DGtal functions and types.
bool test_RestartClock()
Test restart.
bool test_loopTick()
Loop ticks must be >=0.
bool test_minimalTick()
Minimal tick must be >=0.
bool test_MultipleLoop()
Test several loops.