sun.misc
Class Perf

java.lang.Object
  extended by sun.misc.Perf

public final class Perf
extends Object

Compilation stub for pre-1.4.2 JREs. Thanks to it, the whole backport concurrency package compiles and works with 1.4.2 as well as wih earlier JREs, and takes advantage of native Perf class when running on 1.4.2 while seamlessly falling back to System.currentTimeMillis() on previous JREs. This class should NOT be included in the binary distribution of backport.

Version:
1.0
Author:
Dawid Kurzyniec

Method Summary
static Perf getPerf()
           
 long highResCounter()
           
 long highResFrequency()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPerf

public static Perf getPerf()

highResCounter

public long highResCounter()

highResFrequency

public long highResFrequency()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.