Class Times

java.lang.Object
EDU.purdue.cs.bloat.benchmark.Times

public class Times extends Object
This class allows Java to access the information obtained by the UNIX system call times.
  • Constructor Details

    • Times

      public Times()
  • Method Details

    • snapshot

      public static boolean snapshot()
      Takes a "snapshot" of the system. Reads various items from the result of times.
      Returns:
      true if everything is successful
    • userTime

      public static float userTime()
      Returns the user time used by this process in seconds.
    • systemTime

      public static float systemTime()
      Returns the system time used by this process in seconds.
    • main

      public static void main(String[] args) throws Exception
      Test program.
      Throws:
      Exception