Class Times
java.lang.Object
EDU.purdue.cs.bloat.benchmark.Times
This class allows Java to access the information obtained by the UNIX system
call times.
-
Constructor Summary
Constructors -
Method Summary
-
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
-