6 |
import java.util.Date; |
import java.util.Date; |
7 |
import java.util.concurrent.atomic.AtomicInteger; |
import java.util.concurrent.atomic.AtomicInteger; |
8 |
|
|
|
import org.apache.commons.lang.time.DurationFormatUtils; |
|
|
|
|
9 |
public class Statistics { |
public class Statistics { |
10 |
|
|
11 |
private AtomicInteger stationLookupsLocation = new AtomicInteger(0); |
private AtomicInteger stationLookupsLocation = new AtomicInteger(0); |
119 |
Date now = new Date(); |
Date now = new Date(); |
120 |
long duration = (now.getTime() - lastReset.getTime() ); |
long duration = (now.getTime() - lastReset.getTime() ); |
121 |
|
|
122 |
return DurationFormatUtils.formatDuration(duration, "d, HH:mm:ss"); |
return "" + duration; |
123 |
|
//TODO fix this |
124 |
|
//return DurationFormatUtils.formatDuration(duration, "d, HH:mm:ss"); |
125 |
} |
} |
126 |
|
|
127 |
public double getElapsedDays() { |
public double getElapsedDays() { |