1 18 19 package org.apache.jorphan.timer; 20 21 35 final class HRTimer extends AbstractTimer 36 { 37 private static final String HRTIMER_LIB = "hrtlib"; 38 39 static 40 { 41 try 42 { 43 System.loadLibrary (HRTIMER_LIB); 44 } 45 catch (UnsatisfiedLinkError e) 46 { 47 System.out.println ("native lib '" + HRTIMER_LIB 48 + "' not found in 'java.library.path': " 49 + System.getProperty ("java.library.path")); 50 51 throw e; } 53 } 54 55 62 private static native double getTime (); 63 64 protected double getCurrentTime() 65 { 66 return getTime(); 67 } 68 } 69 | Popular Tags |