org.semanticweb.elk.util.logging
Class CachedTimeThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.semanticweb.elk.util.logging.CachedTimeThread
All Implemented Interfaces:
Runnable

public class CachedTimeThread
extends Thread

A class that caches the time every interval

Author:
"Yevgeny Kazakov"

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static long currentTimeMillis
          the current time in milliseconds delayed by at most 10 milliseconds the value that would be returned by System.currentTimeMillis()
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static long getCurrentTimeMillis()
           
 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

currentTimeMillis

public static volatile long currentTimeMillis
the current time in milliseconds delayed by at most 10 milliseconds the value that would be returned by System.currentTimeMillis()

Method Detail

getCurrentTimeMillis

public static long getCurrentTimeMillis()

run

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


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.