Go to the documentation of this file.
19package org.sleuthkit.autopsy.healthmonitor;
24public class TimingMetric {
30 TimingMetric(String
name) {
32 this.startingTimestamp = System.nanoTime();
40 long endingTimestamp = System.nanoTime();
58 double getDuration() throws HealthMonitorException {
62 throw new HealthMonitorException(
"getDuration() called before stopTiming()");
73 void normalize(
long count)
throws HealthMonitorException {
76 throw new HealthMonitorException(
"normalize() called with negative count (" + count +
")");
77 }
else if(count > 1) {
81 throw new HealthMonitorException(
"normalize() called before stopTiming()");
final long startingTimestamp
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.