Print

Print


Commit in lcsim/src/org/lcsim/util on MAIN
Timer.java+171.1 -> 1.2
Compatibility with xml steering driver

lcsim/src/org/lcsim/util
Timer.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- Timer.java	27 May 2009 18:06:45 -0000	1.1
+++ Timer.java	7 Dec 2010 17:12:08 -0000	1.2
@@ -27,6 +27,14 @@
     private AIDA _aida;
 
     /**
+     * Default constructor for use in xml steering file.
+     * Aida cloud plot is named "timing" by default.
+     */
+    public Timer() {
+    	_message = "timing";
+    }
+    
+    /**
      * Timer constructor.  The message string is passed to aida as the title
      * for a cloud, so it should be unique for each timing measurement.
      *
@@ -36,6 +44,15 @@
         _message = message;
         _aida = AIDA.defaultInstance();
     }
+    
+    /**
+     * Sets the title of the aida cloud plot
+     * 
+     * @param title title for aida cloud plot
+     */
+    public void setPlotTitle(String title) {
+    	_message = title;
+    }
 
     /**
      * Timer driver process method.  If this is the first call for a given
CVSspam 0.2.8