ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdiag.h
Revision: 2.3
Committed: Wed Apr 22 20:28:16 2015 UTC (9 years, 1 month ago) by rschregle
Content type: text/plain
Branch: MAIN
Changes since 2.2: +2 -8 lines
Log Message:
Disabled use of SIGCONT if undefined (e.g. on WIN32), removed extra space in
rpict reports after biascomp stats

File Contents

# User Rev Content
1 greg 2.1 /*
2     ==================================================================
3     Photon map diagnostic output and progress reports
4    
5     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
6     (c) Fraunhofer Institute for Solar Energy Systems,
7     Lucerne University of Applied Sciences & Arts
8     ==================================================================
9    
10 rschregle 2.3 $Id: pmapdiag.h,v 2.2 2015/04/21 19:16:51 greg Exp $
11 greg 2.1 */
12    
13    
14     #ifndef PMAPDIAG_H
15     #define PMAPDIAG_H
16    
17     #include "platform.h"
18    
19     #ifdef NON_POSIX
20     #ifdef MINGW
21     #include <sys/time.h>
22     #endif
23     #else
24     #ifdef BSD
25     #include <sys/time.h>
26     #include <sys/resource.h>
27     #else
28     #include <sys/times.h>
29     #include <unistd.h>
30     #endif
31     #endif
32    
33     #include <time.h>
34 greg 2.2 #include <signal.h>
35    
36 rschregle 2.3
37 greg 2.1 /* Time at start & last report */
38     extern time_t repStartTime, repLastTime;
39     /* Report progress & completion counters */
40     extern unsigned long repProgress, repComplete;
41    
42    
43     void pmapDistribReport ();
44     /* Report photon distribution progress */
45    
46     void pmapPreCompReport ();
47     /* Report global photon precomputation progress */
48    
49     void pmapBiasCompReport (char *stats);
50     /* Append full bias compensation statistics to stats; interface to
51     * rpict's report() */
52    
53     #endif