# | Line 15 | Line 15 | static char SCCSid[] = "$SunId$ LBL"; | |
---|---|---|
15 | #ifdef BSD | |
16 | #include <sys/time.h> | |
17 | #include <sys/resource.h> | |
18 | + | #else |
19 | + | #include <signal.h> |
20 | #endif | |
21 | ||
22 | #include "view.h" | |
# | Line 85 | Line 87 | report() /* report progress */ | |
87 | sprintf(errmsg, "%ld rays, %4.2f%% done after %5.4f CPU hours\n", | |
88 | nrays, pctdone, t/3600.0); | |
89 | #else | |
90 | + | signal(SIGALRM, report); |
91 | sprintf(errmsg, "%ld rays, %4.2f%% done\n", nrays, pctdone); | |
92 | #endif | |
93 | eputs(errmsg); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |