choco.kernel.common
Class TimeCacheThread

java.lang.Object
  extended by java.lang.Thread
      extended by choco.kernel.common.TimeCacheThread
All Implemented Interfaces:
Runnable

public final class TimeCacheThread
extends Thread

fast time limit computation inspired from: http://dow.ngra.de/2008/10/27/when-systemcurrenttimemillis-is-too-slow/. cant use the heartbeat counter because it lascks of precision.

Since:
23 juil. 2009 version 2.1.1
Version:
2.1.1
Author:
Arnaud Malapert

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static int CHOCO_MS_TIME_PRECISION
           
static long currentTimeMillis
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHOCO_MS_TIME_PRECISION

public static final int CHOCO_MS_TIME_PRECISION
See Also:
Constant Field Values

currentTimeMillis

public static volatile long currentTimeMillis
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2012. All Rights Reserved.