Counting Down to the Significant Second:<br><br>tprt.c:<br><br>#include <stdio.h><br>#include <time.h><br><br>int main (int argc, char *argv[])<br>{<br> time_t now;<br> printf("Time: %ld\n",time(&now));<br>
}<br><br><br>gcc tprt.c<br><br>while true<br>do<br> ./a.out >> tprt.out<br> sleep 1<br>done<br><br>tail -f ./tprt.out<br><br>Current values for me on a work machine:<br><br>Time: 1234549942<br>Time: 1234549943<br>
Time: 1234549944<br>Time: 1234549946<br>Time: 1234549947<br>Time: 1234549948<br>Time: 1234549949<br>Time: 1234549950<br><br>-- CHS<br><br>