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