Clock code

How can I use clock_t startTime = clock(); and #include <time.h> to display the elapsed time?