1 /* Program to produce output at regular intervals. */
10 #ifdef TIME_WITH_SYS_TIME
14 #ifdef HAVE_SYS_TIME_H
21 struct tm
*localtime ();
33 period
= atoi (argv
[1]);
37 /* Make sure wakeup stops when Emacs goes away. */
40 printf ("Wake up!\n");
42 /* If using a period of 60, produce the output when the minute
47 tp
= localtime (&when
);
48 sleep (60 - tp
->tm_sec
);