public class Statistics extends Object
Constructor and Description |
---|
Statistics(int nTries,
double averageTime,
double totalTime)
Constructs and initializes the specified set of statistics.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttempts()
Returns the number of iterations in the render loop of profiling.
|
double |
getAverageTime()
Returns the average time in ms per iteration in the render loop
|
double |
getTotalTime()
Returns the total time spent in the render loop.
|
void |
printStatistics()
Displays the statistics in the console.
|
String |
toString()
Returns a string representation of the statistics.
|
public Statistics(int nTries, double averageTime, double totalTime)
nTries
- the number of iterations in the render loop of profilingaverageTime
- the average time in ms per iteration in the render looptotalTime
- the total time in ms spent in the render looppublic int getAttempts()
public double getAverageTime()
public double getTotalTime()
public void printStatistics()
Copyright © 2015. All rights reserved.