third_party/fft/src/test/stopwatch/ClockCycleCounter.cpp
/*
==============================================================================
Name: ctor
Description:
	The first object constructed initialise global data. This first
	construction may be a bit slow.
Throws: Nothing
==============================================================================
*/
ctor
Description:
The first object constructed initialise global data. This first
construction may be a bit slow.
Throws: Nothing
ctor Description : The first object constructed initialise global data . This first construction may be a bit slow . Throws : Nothing
ClockCycleCounter::ClockCycleCounter ()
:	_start_time (0)
,	_state (0)
,	_best_score (-1)
{
	if (! _init_flag)
	{
		compute_clk_mul ();
		compute_measure_time_total ();
		compute_measure_time_lap ();
		_start_time = 0;
		_state      = 0;
		_best_score = -1;
		_init_flag = true;
	}
}
ClockCycleCounter :: ClockCycleCounter ( ) : _start_time ( 0 ) , _state ( 0 ) , _best_score ( -1 ) { if ( ! _init_flag ) { compute_clk_mul ( ) ; compute_measure_time_total ( ) ; compute_measure_time_lap ( ) ; _start_time = 0 ; _state = 0 ; _best_score = -1 ; _init_flag = true ; } }
Name: ctor
Description:
The first object constructed initialise global data.
Name : ctor Description : The first object constructed initialise global data .
// Should be executed in this order // Restores object state