package mahjong.tools; /** * Created by joe on 12/2/14. */ public class Timer { long st,ed; public void tick() { st=System.currentTimeMillis(); } public void tock() { ed=System.currentTimeMillis(); } public long elapse() { return ed-st; } }