org.asteriskjava.pbx.util.LogTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
/*
* Created on 2/03/2005
*
*/
package org.asteriskjava.pbx.util;
/**
* @author work shop
*/
public class LogTime {
private final Long dStartTime = System.currentTimeMillis();
/**
* @return time taken from construction until now in milliseconds
*/
public long timeTaken() {
return System.currentTimeMillis() - this.dStartTime;
}
}