Package soot
Class Timer
- java.lang.Object
-
- soot.Timer
-
public class Timer extends Object
Utility class providing a timer. Used for profiling various phases of Sootification.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()Stops the current timer.longgetTime()Returns the sum of the intervals start()-end() of the current timer.voidstart()Starts the given timer.StringtoString()Returns the name of the current timer.
-
-
-
Constructor Detail
-
Timer
public Timer(String name)
Creates a new timer with the given name.
-
Timer
public Timer()
Creates a new timer.
-
-
Method Detail
-
start
public void start()
Starts the given timer.
-
toString
public String toString()
Returns the name of the current timer.
-
end
public void end()
Stops the current timer.
-
getTime
public long getTime()
Returns the sum of the intervals start()-end() of the current timer.
-
-