Simlified use of StopWatch and included example into amaze demosaic
This commit is contained in:
@@ -24,6 +24,12 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "mytime.h"
|
#include "mytime.h"
|
||||||
|
|
||||||
|
#ifdef BENCHMARK
|
||||||
|
#define BENCHFUN StopWatch StopFun(__func__);
|
||||||
|
#else
|
||||||
|
#define BENCHFUN
|
||||||
|
#endif
|
||||||
|
|
||||||
class StopWatch
|
class StopWatch
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -31,12 +31,14 @@
|
|||||||
#include "procparams.h"
|
#include "procparams.h"
|
||||||
#include "sleef.c"
|
#include "sleef.c"
|
||||||
#include "opthelper.h"
|
#include "opthelper.h"
|
||||||
|
#include "StopWatch.h"
|
||||||
|
|
||||||
namespace rtengine
|
namespace rtengine
|
||||||
{
|
{
|
||||||
|
|
||||||
SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw, int winh)
|
SSEFUNCTION void RawImageSource::amaze_demosaic_RT(int winx, int winy, int winw, int winh)
|
||||||
{
|
{
|
||||||
|
BENCHFUN
|
||||||
#define HCLIP(x) x //is this still necessary???
|
#define HCLIP(x) x //is this still necessary???
|
||||||
//min(clip_pt,x)
|
//min(clip_pt,x)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user