Package org.jacop.fz

Class ThreadTimer

  • All Implemented Interfaces:
    Timer

    public class ThreadTimer
    extends java.lang.Object
    implements Timer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Thread thread  
      (package private) java.lang.management.ThreadMXBean timer  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadTimer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCPUTime()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • thread

        java.lang.Thread thread
      • timer

        java.lang.management.ThreadMXBean timer
    • Constructor Detail

      • ThreadTimer

        public ThreadTimer()
    • Method Detail

      • getCPUTime

        public long getCPUTime()
        Specified by:
        getCPUTime in interface Timer