1 /* Program to produce output at regular intervals. */
8 #ifdef TIME_WITH_SYS_TIME
12 #ifdef HAVE_SYS_TIME_H
19 struct tm
*localtime ();
31 period
= atoi (argv
[1]);
35 /* Make sure wakeup stops when Emacs goes away. */
38 printf ("Wake up!\n");
40 /* If using a period of 60, produce the output when the minute
45 tp
= localtime (&when
);
46 sleep (60 - tp
->tm_sec
);