ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdiag.h
Revision: 2.4
Committed: Fri May 8 13:20:22 2015 UTC (9 years ago) by rschregle
Content type: text/plain
Branch: MAIN
Changes since 2.3: +3 -2 lines
Log Message:
Double-counting bugfix for glow sources (thanks DGM!), revised copyright

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 rschregle 2.4 (c) Lucerne University of Applied Sciences and Arts,
8     supported by the Swiss National Science Foundation (SNSF, #147053)
9 greg 2.1 ==================================================================
10    
11 rschregle 2.4 $Id: pmapdiag.h,v 2.3 2015/04/22 20:28:16 rschregle Exp $
12 greg 2.1 */
13    
14    
15     #ifndef PMAPDIAG_H
16     #define PMAPDIAG_H
17    
18     #include "platform.h"
19    
20     #ifdef NON_POSIX
21     #ifdef MINGW
22     #include <sys/time.h>
23     #endif
24     #else
25     #ifdef BSD
26     #include <sys/time.h>
27     #include <sys/resource.h>
28     #else
29     #include <sys/times.h>
30     #include <unistd.h>
31     #endif
32     #endif
33    
34     #include <time.h>
35 greg 2.2 #include <signal.h>
36    
37 rschregle 2.3
38 greg 2.1 /* Time at start & last report */
39     extern time_t repStartTime, repLastTime;
40     /* Report progress & completion counters */
41     extern unsigned long repProgress, repComplete;
42    
43    
44     void pmapDistribReport ();
45     /* Report photon distribution progress */
46    
47     void pmapPreCompReport ();
48     /* Report global photon precomputation progress */
49    
50     void pmapBiasCompReport (char *stats);
51     /* Append full bias compensation statistics to stats; interface to
52     * rpict's report() */
53    
54     #endif