Пример #1
0
void _timingPrint(void)
{
	int x,p=0;
	for (x = 0; x < sizeof(timingInfo)/sizeof(timingInfo[0]); x ++)
	{
    char buf[512];
		if (timingInfo[x].calls)
    {
      p++;
			sprintf(buf,"%d: %d calls, %.4f clocks/call (min=%.4f, max=%.4f). %.8f thingies of CPU time spent\n",
      x,timingInfo[x].calls,(timingInfo[x].cycles/(double)timingInfo[x].calls),
      (double)timingInfo[x].mint,(double)timingInfo[x].maxt,
        (double)timingInfo[x].cycles 
#if defined(_WIN64) || !defined(_WIN32)
          / 1000000.0
#else
        / (2.4*1000.0*1000.0*1000.0)
#endif
          
      );
#ifdef _WIN32
      OutputDebugString(buf);
#else
      printf("%s",buf);
#endif
    }
	}
#ifdef _WIN32
  if (!p) OutputDebugString("no calls to timing lib\n");
#else
  if (!p) printf("no calls to timing lib\n");
#endif
  
	timingInit();
}
Пример #2
0
WDL_ConvolutionEngine_Div::WDL_ConvolutionEngine_Div()
{
  timingInit();
  m_proc_nch=2;
  m_need_feedsilence=true;
}