All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sapia.ubik.net.Timer Maven / Gradle / Ivy

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