[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c80737e 1/7: Measure minimum_birthdate() spee
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c80737e 1/7: Measure minimum_birthdate() speed in unit test |
Date: |
Tue, 27 Jun 2017 17:13:47 -0400 (EDT) |
branch: master
commit c80737e9098603753b7932bf5fd09e783cb22319
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Measure minimum_birthdate() speed in unit test
---
calendar_date_test.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/calendar_date_test.cpp b/calendar_date_test.cpp
index ba286d8..cdae65d 100644
--- a/calendar_date_test.cpp
+++ b/calendar_date_test.cpp
@@ -1060,6 +1060,7 @@ namespace
std::string s = x.str();
x = add_years_and_months(x, 1, 1, true);
attained_age(y, x, oe_age_last_birthday);
+ y = minimum_birthdate(45, x, oe_age_last_birthday);
}
void mete_construct()
@@ -1096,6 +1097,11 @@ namespace
attained_age(y, x, oe_age_last_birthday);
}
+ void mete_dob_limit()
+ {
+ y = minimum_birthdate(45, x, oe_age_last_birthday);
+ }
+
} // Unnamed namespace.
void CalendarDateTest::TestSpeed()
@@ -1108,6 +1114,7 @@ void CalendarDateTest::TestSpeed()
<< " Get y, m, d : " << TimeAnAliquot(mete_get_y_m_d ) << '\n'
<< " Format : " << TimeAnAliquot(mete_format ) << '\n'
<< " Calculate age: " << TimeAnAliquot(mete_attained_age) << '\n'
+ << " DOB limit : " << TimeAnAliquot(mete_dob_limit ) << '\n'
;
}
- [lmi-commits] [lmi] master updated (84e96df -> 47d6100), Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master b4420a3 3/7: Fix misspellings, Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master 7a09c77 2/7: Set 'badbit' for null stream, Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master eb90054 4/7: Do not use value_cast in decimal_root(), Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master c80737e 1/7: Measure minimum_birthdate() speed in unit test,
Greg Chicares <=
- [lmi-commits] [lmi] master 47d6100 7/7: Suppress all output to null stream in decimal_root(), Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master 1f03a06 5/7: Expunge max_stream_precision(), Greg Chicares, 2017/06/27
- [lmi-commits] [lmi] master f4d2b2c 6/7: Include headers iff used, stating reasons if not obvious, Greg Chicares, 2017/06/27