@@ -0,0 +1,1074 @@
+%0Apackage com.uwetrottmann.shopr.utils;%0A%0A/**%0A * Stores data about the current task.%0A */%0Apublic class Statistics %7B%0A%0A    private static Statistics _instance;%0A%0A    private long mStartTime;%0A    private int mCycleCount;%0A    private String mUserName;%0A    private boolean mIsDiversity;%0A%0A    private boolean mIsStarted;%0A%0A    private Statistics() %7B%0A%0A    %7D%0A%0A    public synchronized static Statistics get() %7B%0A        if (_instance == null) %7B%0A            _instance = new Statistics();%0A        %7D%0A        return _instance;%0A    %7D%0A%0A    public synchronized void startTask(String username, boolean isDiversity) %7B%0A        mIsStarted = true;%0A        mUserName = username;%0A        mIsDiversity = isDiversity;%0A        mStartTime = System.currentTimeMillis();%0A        mCycleCount = 0;%0A    %7D%0A%0A    public void incrementCycleCount() %7B%0A        mCycleCount++;%0A    %7D%0A%0A    public synchronized void stopTask() %7B%0A        if (!mIsStarted) %7B%0A            return;%0A        %7D%0A        mIsStarted = false;%0A        long duration = System.currentTimeMillis() - mStartTime;%0A        // TODO: write to database%0A    %7D%0A%0A%7D%0A

Add preliminary Statistics tool, no db ops, yet.