
org.sapia.ubik.net.Timer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sapia_ubik Show documentation
Show all versions of sapia_ubik Show documentation
A RMI-like distributed computing framework
The newest version!
package org.sapia.ubik.net;
/**
* @author Yanick Duchesne
*
*
* - Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
* - License:
- Read the license.txt file of the jar or visit the
* license page at the Sapia OSS web site
*
*/
public class Timer {
private long _start = System.currentTimeMillis();
private long _duration;
private long _total;
public Timer(long duration) {
_duration = duration;
}
public void start() {
_start = System.currentTimeMillis();
}
public boolean isOver() {
_total = (_total + System.currentTimeMillis()) - _start;
_start = System.currentTimeMillis();
return _total > _duration;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy