X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftime_fateman_expand.cpp;h=904d6535576aec1cf493719d07b94fd2f132b6be;hb=b60ef16e9be16480499da701216b4a5081ee9a97;hp=97f5bcd9d6a83b18e692d532d8574796184f4434;hpb=1f5afe37b4c079821de9810435fa9fa11e4ea17b;p=ginac.git diff --git a/check/time_fateman_expand.cpp b/check/time_fateman_expand.cpp index 97f5bcd9..904d6535 100644 --- a/check/time_fateman_expand.cpp +++ b/check/time_fateman_expand.cpp @@ -6,7 +6,7 @@ */ /* - * GiNaC Copyright (C) 1999-2003 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 @@ -20,12 +20,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() { unsigned result = 0; const symbol x("x"), y("y"), z("z"); @@ -42,7 +42,7 @@ static unsigned test(void) return result; } -unsigned time_fateman_expand(void) +unsigned time_fateman_expand() { unsigned result = 0; unsigned count = 0; @@ -66,7 +66,7 @@ unsigned time_fateman_expand(void) } else { cout << " failed "; } - cout << int(1000*(time/count))*0.001 << 's' << endl; + cout << time/count << 's' << endl; return result; }