Code example for Stack

Methods: add

0
	public final BusinessTransaction copy() { 
		return new BusinessTransaction(code, started, this);
	} 
 
	public final void top() { 
		topped.add(System.currentTimeMillis());
	} 
	 
	public final long popTopTimeEllapsed() { 
		return System.currentTimeMillis() - topped.pop();
	} 
	 
	public final long timeSinceBeginning() { 
		return System.currentTimeMillis() - started;
	} 
	 
	@Override 
	public final String toString() {
		return "{" + code + "} started at " + started;
	} 
}