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.2 2015/04/21 19:16:51 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 |
|
37 |
/* 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 |