improve debugger output for time variables when we do not need the 128 bit statistics
parent
9bb706c627
commit
0c235e8edd
|
@ -24,6 +24,7 @@
|
|||
|
||||
namespace ns3 {
|
||||
|
||||
#ifdef GATHER_STATISTICS
|
||||
int HighPrecision::m_nfastadds = 0;
|
||||
int HighPrecision::m_nfastsubs = 0;
|
||||
int HighPrecision::m_nfastmuls = 0;
|
||||
|
@ -66,6 +67,11 @@ HighPrecision::PrintStats (void)
|
|||
"nconversions="<<m_nconversions<<std::endl
|
||||
;
|
||||
}
|
||||
#else
|
||||
void
|
||||
HighPrecision::PrintStats (void)
|
||||
{}
|
||||
#endif /* GATHER_STATISTICS */
|
||||
|
||||
|
||||
const double HighPrecision::MAX_64 = 18446744073709551615.0;
|
||||
|
|
|
@ -51,8 +51,13 @@
|
|||
*/
|
||||
|
||||
|
||||
#define noGATHER_STATISTICS 1
|
||||
|
||||
#ifdef GATHER_STATISTICS
|
||||
#define HP128INC(x) x++
|
||||
#else
|
||||
#define HP128INC(x)
|
||||
//#define HP128INC(x) x++
|
||||
#endif
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
|
@ -88,6 +93,7 @@ private:
|
|||
int64_t m_fastValue;
|
||||
cairo_int128_t m_slowValue;
|
||||
|
||||
#ifdef GATHER_STATISTICS
|
||||
static int m_nfastadds;
|
||||
static int m_nfastsubs;
|
||||
static int m_nfastmuls;
|
||||
|
@ -100,6 +106,7 @@ private:
|
|||
static int m_nslowgets;
|
||||
static int m_ndivs;
|
||||
static int m_nconversions;
|
||||
#endif /* GATHER_STATISTICS */
|
||||
};
|
||||
|
||||
}; // namespace ns3
|
||||
|
|
Loading…
Reference in New Issue