X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_lw_F.cpp;h=31366f696b0f804595e513b0c74ed5d8c13b5e2a;hp=de8aa92b499a4bba6b91f27bec05b5c730e4ff0f;hb=3a56e58f6a3e2dac83f12c254d0d7549bb886af4;hpb=af922d5eb36ed70e4a9e3ffaf4c24492cf89a1a6 diff --git a/check/time_lw_F.cpp b/check/time_lw_F.cpp index de8aa92b..31366f69 100644 --- a/check/time_lw_F.cpp +++ b/check/time_lw_F.cpp @@ -4,7 +4,7 @@ * Lewis and Michael Wester. */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,12 +18,12 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "times.h" -static unsigned test(void) +static unsigned test() { symbol x("x"); symbol y("y"); @@ -38,7 +38,7 @@ static unsigned test(void) return 0; } -unsigned time_lw_F(void) +unsigned time_lw_F() { unsigned result = 0; unsigned count = 0; @@ -46,7 +46,7 @@ unsigned time_lw_F(void) double time = .0; cout << "timing Lewis-Wester test F (gcd of 2-var polys)" << flush; - clog << "-------Lewis-Wester test F (gcd of 2-var polys)" << endl; + clog << "-------Lewis-Wester test F (gcd of 2-var polys):" << endl; rolex.start(); // correct for very small times: @@ -62,7 +62,7 @@ unsigned time_lw_F(void) } else { cout << " failed "; } - cout << int(1000*(time/count))*0.001 << 's' << endl; + cout << time/count << 's' << endl; return result; }