org.dllearner.utilities.statistics
Class SimpleClock

java.lang.Object
  extended by org.dllearner.utilities.statistics.SimpleClock

public class SimpleClock
extends Object

Class for counting time and outputting it.

Author:
Unknown

Constructor Summary
SimpleClock()
           
 
Method Summary
 String getAndSet(String s)
           
 long getTime()
          returns the needed time up to now in ms
 void print(String s)
          prints time needed
 void printAndSet()
          prints time needed and resets the clock
 void printAndSet(String s)
          prints time needed and resets the clock
 void reset()
          resets the clock
 void setTime()
          resets the clock
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClock

public SimpleClock()
Method Detail

printAndSet

public void printAndSet()
prints time needed and resets the clock


printAndSet

public void printAndSet(String s)
prints time needed and resets the clock

Parameters:
s - String for printing

getAndSet

public String getAndSet(String s)

print

public void print(String s)
prints time needed

Parameters:
s - String for printing

setTime

public void setTime()
resets the clock


reset

public void reset()
resets the clock


getTime

public long getTime()
returns the needed time up to now in ms

Returns:


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann