Class Printer

java.lang.Object
  |
  +--Printer

public class Printer
extends java.lang.Object

Class Printer provides printing service with the static println() method. Output is sent to System.out. This class also provides a static getTime() method that returns the time since program startup in milliseconds.


Field Summary
protected static java.text.DecimalFormat format
          format is the format for times printed by this Printer.
protected static long start
           
 
Method Summary
static long getTime()
          Printer.getTime() returns the time in milliseconds since the start of the program.
static void println()
          Printer.println() prints a blank line to System.out.
static void println(java.lang.String msg)
          Printer.println(msg) prints the current time to System.out, followed by the name of the current Process, followed by msg, followed by a newline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected static java.text.DecimalFormat format
format is the format for times printed by this Printer.

start

protected static long start
Method Detail

println

public static void println()
Printer.println() prints a blank line to System.out.

println

public static void println(java.lang.String msg)
Printer.println(msg) prints the current time to System.out, followed by the name of the current Process, followed by msg, followed by a newline.

getTime

public static long getTime()
Printer.getTime() returns the time in milliseconds since the start of the program.