net.grelf.grip
Class Timer

java.lang.Object
  extended by net.grelf.grip.Timer

public class Timer
extends java.lang.Object


Constructor Summary
Timer(java.lang.String anOpName, java.awt.image.BufferedImage bim)
          Create a Timer, recording the start time.
Timer(java.lang.String anOpName, Im im)
          Create a Timer, recording the start time.
Timer(java.lang.String anOpName, Image image)
          Create a Timer, recording the start time.
 
Method Summary
 void stop()
          Stop the timer and log the operation name, image size and duration (since the Timer was constructed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer(java.lang.String anOpName,
             Image image)
Create a Timer, recording the start time. Image may be null.


Timer

public Timer(java.lang.String anOpName,
             java.awt.image.BufferedImage bim)
Create a Timer, recording the start time. bim may be null.


Timer

public Timer(java.lang.String anOpName,
             Im im)
Create a Timer, recording the start time. bim may be null.

Method Detail

stop

public void stop()
Stop the timer and log the operation name, image size and duration (since the Timer was constructed).