- Added CGAL_square bench.

This commit is contained in:
Sylvain Pion 1998-12-22 14:25:47 +00:00
parent 2dc447c6e0
commit fb4633c749
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ void bench()
t.stop(); t.stop();
cout << c << "\tsqrt\t" << t.time()-dt << endl; cout << c << "\tsqrt\t" << t.time()-dt << endl;
dt = t.time(); t.start();
for (i=0; i<loops; i++) { c = CGAL_square(b); }
t.stop();
cout << c << "\tsquare\t" << t.time()-dt << endl;
dt = t.time(); t.start(); dt = t.time(); t.start();
for (i=0; i<loops; i++) { c = b; } for (i=0; i<loops; i++) { c = b; }
t.stop(); t.stop();