Simlified use of StopWatch and included example into amaze demosaic

This commit is contained in:
heckflosse
2015-11-27 23:19:45 +01:00
parent 0730b1b494
commit 4272e2e167
2 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,12 @@
#include <iostream>
#include "mytime.h"
#ifdef BENCHMARK
#define BENCHFUN StopWatch StopFun(__func__);
#else
#define BENCHFUN
#endif
class StopWatch
{
public:

View File

@@ -31,12 +31,14 @@
#include "procparams.h"
#include "sleef.c"
#include "opthelper.h"
#include "StopWatch.h"
namespace rtengine
{
SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw, int winh)
{
BENCHFUN
#define HCLIP(x) x //is this still necessary???
//min(clip_pt,x)