Re-implement to be more threads-friendly (a first step towards thread-safety).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user