[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] In about 2.5 hours...
- Subject: [ale] In about 2.5 hours...
- From: fletch at phydeaux.org (Mike Fletcher)
- Date: Fri, 13 Feb 2009 14:25:13 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
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