aTrans = Integer.valueOf((String) aStatsDict.valueForKey("transactions"));
} catch (Throwable ex) {
aTrans = null;
}
if (aTrans != null && (aTrans.intValue() > 0)) {
NSTimestamp aDate;
float aRunningTime;
try {
// Important! This relies on the fact that the stats will deliver startdate based on GMT, since new NSTimestamp is also base on GMT!
aDate = (NSTimestamp)StatsUtilities.dateFormatter.parseObject(aStartDate);
aRunningTime = (aDate.getTime() - System.currentTimeMillis()) / 1000;
} catch (java.text.ParseException ex) {
aRunningTime = (float) 0.0;
NSLog.err.appendln("Format error in StatsUtilities: " + aStartDate);
NSLog.err.appendln(ex.getErrorOffset());
NSLog.err.appendln("Actual Transactions Per Second rate is inaccurate.");