|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
An indiviual Benchmark. More...
#include "tracktion_Benchmark.h"
Public Member Functions | |
| Benchmark (BenchmarkDescription desc) | |
| Creates a Benchmark for a given BenchmarkDescription. | |
| void | start () |
| Starts timing the benchmark. | |
| void | stop () |
| Stops timing the benchmark. | |
| BenchmarkResult | getResult () const |
| Returns the timing results. | |
An indiviual Benchmark.
To masure a benchmark, simply create one of these with a valid description then before the code you are measuring call start and stop afterwards. Once you've done that, call getResult() to return the duration the benchmark took to run.
To collect a set of BenchmarkResults see @BenchmarkList
Definition at line 68 of file tracktion_Benchmark.h.
| tracktion::engine::Benchmark::Benchmark | ( | BenchmarkDescription | desc | ) |
Creates a Benchmark for a given BenchmarkDescription.
Definition at line 72 of file tracktion_Benchmark.h.
| BenchmarkResult tracktion::engine::Benchmark::getResult | ( | ) | const |
Returns the timing results.
Definition at line 90 of file tracktion_Benchmark.h.
| void tracktion::engine::Benchmark::start | ( | ) |
Starts timing the benchmark.
Definition at line 78 of file tracktion_Benchmark.h.
| void tracktion::engine::Benchmark::stop | ( | ) |
Stops timing the benchmark.
Definition at line 84 of file tracktion_Benchmark.h.