From 6d5333b89618734e59853ba7da75b920ac40dae0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Aug 2004 23:18:45 -0400 Subject: use value_t instead of balance_pair_t; gains for 10% binary, 2% textual --- datetime.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'datetime.h') diff --git a/datetime.h b/datetime.h index e9f2cd8a..a3b0651a 100644 --- a/datetime.h +++ b/datetime.h @@ -14,7 +14,14 @@ struct interval_t int seconds; interval_t(int _seconds = 0, int _months = 0, int _years = 0) - : years(_years), months(_months), seconds(_seconds) {} + : years(_years), months(_months), seconds(_seconds) { + DEBUG_PRINT("ledger.memory.ctors", "ctor interval_t"); + } +#ifdef DEBUG_ENABLED + ~interval_t() { + DEBUG_PRINT("ledger.memory.dtors", "dtor interval_t"); + } +#endif operator bool() const { return seconds > 0 || months > 0 || years > 0; -- cgit v1.2.3