org.mtzky.date
クラス StopWatch

java.lang.Object
  上位を拡張 org.mtzky.date.StopWatch

public class StopWatch
extends Object

Measures an elapsed time in milliseconds.

作成者:
mtzky

コンストラクタの概要
StopWatch()
           
 
メソッドの概要
 long glance()
           Returns elapsed time, but not stops measuring.
 boolean isRunning()
           
 long stop()
           Stops to measure an elapsed time.
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

StopWatch

public StopWatch()
メソッドの詳細

glance

public long glance()

Returns elapsed time, but not stops measuring.

戻り値:
elapsed time in milliseconds

stop

public long stop()

Stops to measure an elapsed time.

戻り値:
elapsed time in milliseconds
例外:
IllegalStateException - if already stopped

isRunning

public boolean isRunning()
戻り値:
true if running

toString

public String toString()
オーバーライド:
クラス Object 内の toString


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.