[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] In about 2.5 hours...



Charles Shapiro wrote:
> Counting Down to the Significant Second:
>
> tprt.c:
>
> #include <stdio.h>
> #include <time.h>
>
> int main (int  argc, char *argv[])
> {
>   time_t now;
>   printf("Time: %ld\n",time(&now));
> }
Fore.

perl -le 'while(1){print "Time: ", time;sleep 1}'


Of course if you've got the watch utility installed you could go with 
the even shorter.

watch -n1 date +%s