|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectshohaku.core.util.debug.StopWatch
経過時間を指定の出力ストリームへ出力するストップウオッチを提供します。
簡易的な性能テスト等への利用が想定されています。
フィールドの概要 | |
static StopWatch |
out
標準ストリームに出力する StopWatch を定義します、複数のスレッドから同時に使用できません。 |
コンストラクタの概要 | |
StopWatch()
標準の出力ストリームを出力先として初期化します。 |
|
StopWatch(java.io.PrintStream pstream)
指定されたプリントストリームを出力先として初期化します。 |
|
StopWatch(java.io.PrintWriter writer)
指定されたプリントライターを出力先として初期化します。 |
メソッドの概要 | |
long |
currentTime()
現在時刻を出力します。 |
java.lang.String |
getTimeFormat()
時刻の出力フォーマットを返却します. |
void |
print(java.lang.Object text)
指定のオブジェクトを出力します。 |
void |
println(java.lang.Object text)
指定のオブジェクトを出力して改行します。 |
void |
reset()
タイマーをリセットします。 |
void |
resume()
タイマーを休止状態から再開します。 |
void |
setTimeFormat(java.lang.String timeFormat)
時刻の出力フォーマットを格納します. |
long |
split()
保存時刻からの経過ミリ秒を出力し、現在の時刻を新たな保存時刻として登録します。 |
long |
start()
タイマーを開始し開始時刻をミリ秒で出力します。 |
long |
stop()
タイマーを終了し開始時刻から終了時刻の経過ミリ秒を出力します。 |
void |
suspend()
タイマーを休止します。 |
long |
time()
開始時刻からの経過ミリ秒を出力します(休止状態の経過時間は含まれまん)。 |
java.lang.String |
toString()
Timer{start=date, stop=date, split=date}の文字列を返却します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final StopWatch out
コンストラクタの詳細 |
public StopWatch()
public StopWatch(java.io.PrintStream pstream)
pstream
- 出力先のプリントストリームpublic StopWatch(java.io.PrintWriter writer)
writer
- 出力先のプリントライターメソッドの詳細 |
public void print(java.lang.Object text)
text
- 出力基public void println(java.lang.Object text)
text
- 出力基public long start()
public long time()
public long split()
public long stop()
public void suspend()
public void resume()
public long currentTime()
public void reset()
public java.lang.String toString()
Object.toString()
public java.lang.String getTimeFormat()
public void setTimeFormat(java.lang.String timeFormat)
timeFormat
- 時刻の出力フォーマット
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |