/*************************************************************************** * Copyright (C) 2010 by Michael Fischer * * fischer-michael@cs.yale.edu * * * * For use in Yale course CPSC 467b, Spring 2010 * ***************************************************************************/ #ifndef STOPWATCH_H_ #define STOPWATCH_H_ #include // ---------------------------------------------------------------------------- // Timing routines typedef struct { struct timeval start; struct timeval stop; } stopwatch; void startTime( stopwatch* sw ); void stopTime( stopwatch* sw ); void printElapsedTime( stopwatch* sw ); #endif /* STOPWATCH_H_ */