Package PamUtils

Class SystemTiming

java.lang.Object
PamUtils.SystemTiming

public class SystemTiming extends Object
Class for some system based time functions, primarily to get CPU time for the process and to set the system time. These are bundled together here purely for the convenience of having the native code in a single dll. A windows DLL has been written - we need someone to write DLL's for other OS.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • SystemTiming

      public SystemTiming()
  • Method Details

    • load

      public static void load()
    • getProcessCPUTime

      public static long getProcessCPUTime()
      Returns:
      the amount of CPU used by the current process in 100ns intervals
    • setSystemTime

      public static boolean setSystemTime(long timeMilliseconds)
    • setSystemTime

      public static boolean setSystemTime(Calendar c)