SimpleTimer -- defining a main method for testing a class.

This class represents a simple timer that tracks and reports elapsed time in seconds. The class's main method conducts an extremely simple test of the class.


To see this example in action:
  1. Compile the Java source file, SimpleTimer.java:
    	javac SimpleTimer.java
    
  2. Run the class:
    	java SimpleTimer
    


Output:
    Test of class SimpleTimer:  passed.

The source.