/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/Statistics.java
ViewVC logotype

Diff of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/Statistics.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1414 by torben, Mon Sep 20 20:11:55 2010 UTC revision 1415 by torben, Mon May 2 15:43:42 2011 UTC
# Line 6  import java.sql.SQLException; Line 6  import java.sql.SQLException;
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);
# Line 121  public class Statistics { Line 119  public class Statistics {
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() {

Legend:
Removed from v.1414  
changed lines
  Added in v.1415

  ViewVC Help
Powered by ViewVC 1.1.20