com.cisco.oss.foundation.logging.transactions.Component Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logging-log4j Show documentation
Show all versions of logging-log4j Show documentation
This project is the logging log4j implementation library in the cisco vss foundation runtime
package com.cisco.oss.foundation.logging.transactions;
/**
* Hold component processing time
* @author abrandwi
*
*/
public class Component {
private Timer timer;
private final String componentType;
public Component( String ComponentType ) {
this.componentType = ComponentType;
this.timer = new Timer();
}
public long getLastTime() {
return timer.getLastTime();
}
public long getTime() {
return timer.getTime();
}
public void startTimer() {
timer.start(getComponentType());
}
public void pauseTimer() {
timer.pause(getComponentType());
}
public void resetTimer() {
timer.reset(getComponentType());
}
public String getComponentType() {
return componentType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy