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