1 package no.uio.ifi.refaktor.analyze;
3 public class AnalysisStatistics {
4 private int methodCount = 0;
5 private long startTime = 0;
9 startTime = System.currentTimeMillis();
12 public void incrementMethodCount() {
16 public int getMethodCount() {
20 public String timeSinceStart() {
21 long secondsSinceAnalysisStart = secondsSinceStart();
22 return secondsSinceAnalysisStart/60 + "m" + secondsSinceAnalysisStart % 60 + "s";
25 private long secondsSinceStart() {
26 return (System.currentTimeMillis() - startTime)/1000;