summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 23:18:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 23:18:45 -0400
commit6d5333b89618734e59853ba7da75b920ac40dae0 (patch)
tree3ddcc232a2c229a2ace5ca739ba7de3889fb6edc /datetime.h
parent3ff84b7363575c63129e5b7a5b142896b76dcf06 (diff)
downloadfork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.tar.gz
fork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.tar.bz2
fork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.zip
use value_t instead of balance_pair_t; gains for 10% binary, 2% textual
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;