home *** CD-ROM | disk | FTP | other *** search
- /******************************************
- * STOPWATCH.c *
- * Copyright TimeSlice, Inc. 1985, 86, 87. *
- ******************************************/
- long time( long * );
-
- /***
- * TIMESTAMP( STMPPTR )
- * Set the long pointed by stmpptr to the current time, in seconds,
- * and return time.
- ***/
- long timestamp( stmpptr )
- long *stmpptr;
- {
-
- return time( stmpptr );
- }
-
- /***
- * ELAPSED( STMPPTR )
- * Return number of seconds elapsed since timestamp( stmpptr ) was called.
- ***/
- long elapsed( stmpptr )
- long *stmpptr;
- {
- return time( 0L ) - *stmpptr;
- }
-