/* second_e.c, a second routine using the real-time-clock interface of the
   C standard library.
   This is a valuable port for embedded systems because a real-time-clock 
   is usually available, and the benchmark permits one to test the 
   CPU core on a prototype to see if it is well-tuned to the memory.
   Note that on some OSs clock() returns wall-time ticks since reset.  On 
   others, (such as OS-9000) it returns the process's CPU time utilized since 
   reset.  By convention, if clock() returns -1, it is not implemented.
   Programmer: Ray Van De Walker (714)444-6903
 */

#include <time.h>

double second(void)
{
    double secx;

    secx = (double)clock() / (double)CLOCKS_PER_SEC;
    return secx;
}

/* end of file */

