ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpict.c
(Generate patch)

Comparing ray/src/rt/rpict.c (file contents):
Revision 2.35 by greg, Wed Nov 24 14:28:08 1993 UTC vs.
Revision 2.36 by greg, Sun Dec 12 13:56:08 1993 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
1 > /* Copyright (c) 1993 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 155 | Line 155 | report()               /* report progress */
155          gethostname(hostname, sizeof(hostname));
156   #else
157          times(&tbuf);
158 + #ifdef _SC_CLK_TCK
159          period = 1.0 / sysconf(_SC_CLK_TCK);
160 + #else
161 +        period = 1.0 / 60.0;
162 + #endif
163          u = ( tbuf.tms_utime + tbuf.tms_cutime ) * period;
164          s = ( tbuf.tms_stime + tbuf.tms_cstime ) * period;
165          uname(&nambuf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines