diff options
Diffstat (limited to 'RTJava/benchmarks/RawSpeed/Fir/PerformanceMeter.java')
-rw-r--r-- | RTJava/benchmarks/RawSpeed/Fir/PerformanceMeter.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/RTJava/benchmarks/RawSpeed/Fir/PerformanceMeter.java b/RTJava/benchmarks/RawSpeed/Fir/PerformanceMeter.java deleted file mode 100644 index 508bc49a902..00000000000 --- a/RTJava/benchmarks/RawSpeed/Fir/PerformanceMeter.java +++ /dev/null @@ -1,48 +0,0 @@ -//$Id$ - -package Fir; - -/** - * This class provide a pretty easy and naive way of - * measuring the performance of software, in term of - * time taken to execute a given test. This class - * represent the abstract base for class that effectively - * preform some test. What this class provide is a template - * method, that implements the logic related to the measuring - * of the time ellapsed. - */ -public class PerformanceMeter { - - /** - * This method runs the test by setting the start time - * invoking the sublclass specific Run method. - */ - public void Start() { - this.mTimeTrace = new TimeTrace(); - this.mTimeTrace.Start(); - this.Run(); - this.mTimeTrace.Stop(); - } - - /** - * Gives the time taken to run the test. - */ - public double GetTraceTime() { - return this.mTimeTrace.GetElapsedTime(); - } - - /** - * Gets an estimate of the accuracy of the estimate given. - */ - public double GetTraceTimeResolution() { - return this.mTimeTrace.GetResolution(); - } - - /** - * This method has to be filled by the sub-class - * that provide a specific test strategy. - */ - protected void Run() { } - - private TimeTrace mTimeTrace; -} |