org.placidus.performance
Class PerformanceStopWatch

java.lang.Object
  extended by org.placidus.performance.PerformanceStopWatch

public class PerformanceStopWatch
extends java.lang.Object

To do performance-tests. It holds times for keys(codeline marks) and prints a summary at getString. It can also handle multithreads.

Author:
ds

Constructor Summary
PerformanceStopWatch()
           
 
Method Summary
static void clickStopWatch(java.lang.String id)
          To add new timemark to object in member map for given id
static java.lang.String getString()
          to get a string representation of all containing objects
static void init()
          Initializes the map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceStopWatch

public PerformanceStopWatch()
Method Detail

init

public static void init()
Initializes the map


clickStopWatch

public static void clickStopWatch(java.lang.String id)
To add new timemark to object in member map for given id

Parameters:
id - to click start to stopwatch (add average time)

getString

public static java.lang.String getString()
to get a string representation of all containing objects

Returns:
string representation


Copyright © 2006 DS. All Rights Reserved.