lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] (no subject)


From: Greg Chicares
Subject: [lmi-commits] (no subject)
Date: Thu, 23 Jun 2016 16:18:40 +0000 (UTC)

branch: master
commit a34f213c033b2fdbc7cf9d0bd8baf0b0821e57d6
Author: Gregory W. Chicares <address@hidden>
Date:   Wed Jun 22 21:42:48 2016 +0000

    Rename timing functions for concinnity with other unit tests
---
 currency_test.cpp |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/currency_test.cpp b/currency_test.cpp
index 55160c5..2bb3cbb 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -189,7 +189,7 @@ void do_some_arithmetic(T t)
     T volatile v(t);
 }
 
-void time_double()
+void mete_double()
 {
     double d(1.23);
     for(int j = 0; j < 1000000; ++j)
@@ -198,7 +198,7 @@ void time_double()
         }
 }
 
-void time_amount_type()
+void mete_amount_type()
 {
     currency::amount_type a(123);
     for(int j = 0; j < 1000000; ++j)
@@ -207,7 +207,7 @@ void time_amount_type()
         }
 }
 
-void time_currency()
+void mete_currency()
 {
     currency c(1, 23);
     for(int j = 0; j < 1000000; ++j)
@@ -220,9 +220,9 @@ void currency_test::test_speed()
 {
     std::cout
         << "  Speed tests..."
-        << "\n  double     : " << TimeAnAliquot(time_double)
-        << "\n  amount_type: " << TimeAnAliquot(time_amount_type)
-        << "\n  currency   : " << TimeAnAliquot(time_currency)
+        << "\n  double     : " << TimeAnAliquot(mete_double)
+        << "\n  amount_type: " << TimeAnAliquot(mete_amount_type)
+        << "\n  currency   : " << TimeAnAliquot(mete_currency)
         << std::endl
         ;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]