| 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 |
|
|
$Id: pmapdiag.h,v 1.2 2014/09/24 09:41:18 taschreg Exp taschreg $ |
| 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 |
|
|
|
| 35 |
|
|
|
| 36 |
|
|
/* Time at start & last report */ |
| 37 |
|
|
extern time_t repStartTime, repLastTime; |
| 38 |
|
|
/* Report progress & completion counters */ |
| 39 |
|
|
extern unsigned long repProgress, repComplete; |
| 40 |
|
|
|
| 41 |
|
|
|
| 42 |
|
|
void pmapDistribReport (); |
| 43 |
|
|
/* Report photon distribution progress */ |
| 44 |
|
|
|
| 45 |
|
|
void pmapPreCompReport (); |
| 46 |
|
|
/* Report global photon precomputation progress */ |
| 47 |
|
|
|
| 48 |
|
|
void pmapBiasCompReport (char *stats); |
| 49 |
|
|
/* Append full bias compensation statistics to stats; interface to |
| 50 |
|
|
* rpict's report() */ |
| 51 |
|
|
|
| 52 |
|
|
#endif |