org.kaoriha.marimite
Class Stopwatch

java.lang.Object
  extended by org.kaoriha.marimite.Stopwatch

public class Stopwatch
extends Object

Checkpoint of process time measurement. You should call start(String) first and then call lap(String) for each checkpoint. This class uses ThreadLocal so it ignores call stack. If you want lexical variable, use LocalStopwatch.

Author:
NAKAZATO Hajime

Method Summary
static void lap(String point)
           
static void start(String point)
          Call this at the head of measurement target process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public static void start(String point)
Call this at the head of measurement target process.

Parameters:
point - Checkpoint name. Must not contain " - ".

lap

public static void lap(String point)
Parameters:
point - Checkpoint name. Must not contain " - ".


Copyright ? 2008 Hound. All Rights Reserved.