home *** CD-ROM | disk | FTP | other *** search
- /*
- * Stopwatch/time support for Stopwatch app.
- * Author: Rich Plevin
- *
- * For legal stuff see the file COPYRIGHT
- */
- #import <sys/time.h>
- #import <appkit/appkit.h>
-
- @interface StopWatch:Object
- {
- BOOL running;
- struct timeval start;
- struct timeval finish;
- }
-
- - startWatch; /* start the watch */
- - stopWatch; /* stop the watch */
- - (BOOL) running; /* are we running? */
- - (const char *) elapsedTime; /* return a string showing elapsed time in mins */
- - (int) elapsedMinutes;
- - (const char *)startTimeString;
- - (const char *)startDateString;
- @end
-