mirror of https://github.com/CGAL/cgal
In CGAL::Profile_timer, use CGAL::Timer instead of CGAL::Real_timer, so
that the CPU time is computed instead of the sum CPU+system times.
This commit is contained in:
parent
a8e9a6954d
commit
d6d4608ede
|
|
@ -38,14 +38,14 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <CGAL/Real_timer.h>
|
#include <CGAL/Timer.h>
|
||||||
|
|
||||||
CGAL_BEGIN_NAMESPACE
|
CGAL_BEGIN_NAMESPACE
|
||||||
|
|
||||||
struct Profile_timer
|
struct Profile_timer
|
||||||
{
|
{
|
||||||
class Local {
|
class Local {
|
||||||
Real_timer rt;
|
Timer rt;
|
||||||
Profile_timer *p;
|
Profile_timer *p;
|
||||||
public:
|
public:
|
||||||
Local(Profile_timer* p_) : p(p_) { rt.start(); }
|
Local(Profile_timer* p_) : p(p_) { rt.start(); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue