edu.stanford.nlp.util
Class Timing

java.lang.Object
  |
  +--edu.stanford.nlp.util.Timing

public class Timing
extends Object

A tiny class for measuring how long things take


Constructor Summary
Timing()
           
 
Method Summary
static long endTime()
          Print how long the timed operation took.
static long endTime(String str)
          Print how long the timed operation took.
static void startTime()
          Start the timing operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timing

public Timing()
Method Detail

startTime

public static void startTime()
Start the timing operation


endTime

public static long endTime(String str)
Print how long the timed operation took.

Parameters:
str - additional string to be printed out at end of timing
Returns:
number of elapsed milliseconds

endTime

public static long endTime()
Print how long the timed operation took.



Stanford NLP Group