java.lang.Object
dev.civl.abc.util.IF.Timer
An object used to print how long it takes to do things.
-
Constructor Summary
ConstructorsConstructorDescriptionTimer()Constructs a new "do-nothing" timer.Timer(PrintStream out) Constructs new timer which will print output to the given stream. -
Method Summary
-
Constructor Details
-
Timer
public Timer()Constructs a new "do-nothing" timer. Nothing is printed, nothing is timed. Here for convenience only, so that users can say "markTime()" whenever they want. -
Timer
Constructs new timer which will print output to the given stream.- Parameters:
out- stream to which output should be printed
-
-
Method Details
-
markTime
Prints a message which includes the amount of time (in seconds, rounded to thousandths), since the last call to, or since instantiation if this is the first such call.invalid reference
markTime()- Parameters:
message- this message is inserted into the actual message that is printed. This message should be a simple verbal phrase, such as "compile program", or "preprocess source code".
-