Next: Trouble Shooting
Up: StopWatch User's Guide
Previous: Options and System
The StopWatch distribution contains several example programs to demonstrate
how to use StopWatch , and to test the installation. These programs are
located in the src directory. Once you select or create the correct
makefile you should be able to compile these examples with
``make prog'' where prog is the name of the source file
without the .f90 extension.
- simple.f90 -- This is a short example showing the simplest use of StopWatch .
- advanced.f90 -- This example illustrates the use of some of the
advanced features of StopWatch , including array arguments and watchgroups.
- overhead.f90 -- This program prints the clock precisions, and measures
the amount of time used by calls to StopWatch subroutines. As long as the
clock precision is much larger than the overhead of a StopWatch subroutine,
StopWatch should not increase the time being measured.
- testsw.f90 -- This is a program that tests most of the functionality of
- errors.f90 -- This is a program that tests many of the error conditions
detected by StopWatch .
- bomb.f90 -- This program attempts to make StopWatch crash by using
a watch that has not been created. Running this program should indicate how
your system handles this error condition, but there is no guarantee that your
compiler will handle the Fortran error consistently.