19 package org.sleuthkit.autopsy.healthmonitor;
 
   32         this.startingTimestamp = System.nanoTime();
 
   40         long endingTimestamp = System.nanoTime();
 
   41         this.duration = (double)(endingTimestamp - startingTimestamp) / 1000000;
 
   58     double getDuration() throws HealthMonitorException {
 
   59         if (duration != null) {
 
   62             throw new HealthMonitorException(
"getDuration() called before stopTiming()");
 
   73     void normalize(
long count) 
throws HealthMonitorException {
 
   74         if (duration != null) {
 
   76                 throw new HealthMonitorException(
"normalize() called with negative count (" + count + 
")");
 
   77             } 
else if(count > 1) {
 
   78                 duration = duration / count;
 
   81             throw new HealthMonitorException(
"normalize() called before stopTiming()");
 
final long startingTimestamp