Android Open Source - thesearchbattle Timer






From Project

Back to project page thesearchbattle.

License

The source code is released under:

Apache License

If you think the Android project thesearchbattle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.raycoarana.thesearchbattle.model;
/* www.  j a  va2s. c o  m*/
public class Timer {

    private final long mStartTimestamp;
    private long mTimesplased;

    public static Timer start() {
        return new Timer();
    }

    private Timer() {
        mStartTimestamp = System.currentTimeMillis();
    }

    public void stop() {
        mTimesplased = System.currentTimeMillis() - mStartTimestamp;
    }

    public String toString() {
        return String.format("Total time: %d ms (%.3f sg)", mTimesplased, mTimesplased / 1000.f);
    }

    public long toLong() {
        return mTimesplased;
    }
}




Java Source Code List

com.raycoarana.thesearchbattle.ApplicationTest.java
com.raycoarana.thesearchbattle.BattleArenaActivity.java
com.raycoarana.thesearchbattle.database.Database.java
com.raycoarana.thesearchbattle.io.ResultsRegister.java
com.raycoarana.thesearchbattle.io.StreamExtensions.java
com.raycoarana.thesearchbattle.model.Car.java
com.raycoarana.thesearchbattle.model.DataSetDefinition.java
com.raycoarana.thesearchbattle.model.Timer.java
com.raycoarana.thesearchbattle.search.BaseSearchEngine.java
com.raycoarana.thesearchbattle.search.FTSSearch.java
com.raycoarana.thesearchbattle.search.MemorySearch.java
com.raycoarana.thesearchbattle.search.SearchEngine.java