Ardour  9.0-pre0-582-g084a23a80d
benchmark.h
Go to the documentation of this file.
1 #include "pbd/xml++.h"
2 #include "canvas/types.h"
3 
4 extern double double_random ();
6 
7 namespace ArdourCanvas {
8  class ImageCanvas;
9 }
10 
11 class Benchmark
12 {
13 public:
14  Benchmark (std::string const &);
15  virtual ~Benchmark () {}
16 
17  void set_iterations (int);
18  double run ();
19 
20  virtual void do_run (ArdourCanvas::ImageCanvas &) = 0;
21  virtual void finish (ArdourCanvas::ImageCanvas &) {}
22 
23 private:
24  ArdourCanvas::ImageCanvas* _canvas;
26 };
double double_random()
ArdourCanvas::Rect rect_random(double)
void set_iterations(int)
virtual void finish(ArdourCanvas::ImageCanvas &)
Definition: benchmark.h:21
virtual ~Benchmark()
Definition: benchmark.h:15
virtual void do_run(ArdourCanvas::ImageCanvas &)=0
ArdourCanvas::ImageCanvas * _canvas
Definition: benchmark.h:24
Benchmark(std::string const &)
int _iterations
Definition: benchmark.h:25
double run()