ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdiag.h
Revision: 2.2
Committed: Tue Apr 21 19:16:51 2015 UTC (9 years ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +8 -1 lines
Log Message:
Fixes for Windows and photon map

File Contents

# Content
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 $Id: pmapdiag.h,v 2.1 2015/02/24 19:39:26 greg Exp $
11 */
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 #include <signal.h>
35
36 #ifdef _WIN32
37 #ifndef SIGCONT
38 #define SIGCONT 0
39 #endif
40 #endif
41
42
43 /* Time at start & last report */
44 extern time_t repStartTime, repLastTime;
45 /* Report progress & completion counters */
46 extern unsigned long repProgress, repComplete;
47
48
49 void pmapDistribReport ();
50 /* Report photon distribution progress */
51
52 void pmapPreCompReport ();
53 /* Report global photon precomputation progress */
54
55 void pmapBiasCompReport (char *stats);
56 /* Append full bias compensation statistics to stats; interface to
57 * rpict's report() */
58
59 #endif