CS 320
Feb. 21, 2005
paint.c from the class
home page, and add it to the project.
Hints:
time() function returns the number of seconds since the
beginning of the ``Epoch:''
#include <time.h> #include <stdlib.h> int startTime = time(NULL);
sprintf() function can be used to create the time
string:
#include <stdio.h>
char timeString[80];
sprintf(timeString, "%2d:%02d:%02d", elapsedHours, elapsedMinutes,
elapsedSeconds);