diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-21 23:18:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-21 23:18:45 -0400 |
commit | 6d5333b89618734e59853ba7da75b920ac40dae0 (patch) | |
tree | 3ddcc232a2c229a2ace5ca739ba7de3889fb6edc /datetime.h | |
parent | 3ff84b7363575c63129e5b7a5b142896b76dcf06 (diff) | |
download | fork-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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |