Re-implement to be more threads-friendly (a first step towards thread-safety).

This commit is contained in:
Sylvain Pion
2008-12-04 01:57:33 +00:00
parent 68c1bcc095
commit aa06636838
2 changed files with 21 additions and 19 deletions
@@ -2,14 +2,17 @@
#include <CGAL/Profile_timer.h>
void f()
{
CGAL_TIME_PROFILER("seconds spent in this function (total time)");
// do something
double d = 1+1;
(void) d;
}
int main()
{
CGAL_TIME_PROFILER("seconds spent in this for loop");
for (int i=0; i<10; ++i)
{
// do something
double d = 1+1;
(void) d;
}
for (int i=0; i<100000; ++i)
f();
return 0;
}