protected void oneTickDisplay()
{
long soFar = timer.readTimer() ;
long thisTime = soFar - lastTime ;
long tpsBatch = (batchInterval * 1000L) / thisTime;
long tpsAvg = (totalCount * 1000L) / soFar;
String msg = String.format(format, totalCount, units, tpsBatch, tpsAvg) ;
if ( displayMemory )
{
long mem = Runtime.getRuntime().totalMemory() ;
long free = Runtime.getRuntime().freeMemory() ;
msg = msg+String.format(" [M:%,d/F:%,d]", mem, free) ;
}
println(label, msg) ;
if ( tickCount > 0 && (tickCount%10) == 0 )
{
String timestamp = StringUtils.str(new Date()) ;
String msg2 = String.format(" Elapsed: %f.2f seconds [%s]", soFar/1000F, timestamp) ;
println(label, msg2) ;
}
lastTime = soFar ;
}