New profiler, for profiling time spent in a function/block.

This commit is contained in:
Sylvain Pion
2008-12-03 23:05:35 +00:00
parent af48d47506
commit 68c1bcc095
3 changed files with 102 additions and 7 deletions
@@ -0,0 +1,15 @@
#define CGAL_PROFILE
#include <CGAL/Profile_timer.h>
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;
}
return 0;
}