summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'datetime.h')
-rw-r--r--datetime.h9
1 files changed, 8 insertions, 1 deletions
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;