Verified Commit 96319271 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: use new timer

parent 9060a358
......@@ -40,12 +40,11 @@
#ifndef HPP_FCL_COLLISION_H
#define HPP_FCL_COLLISION_H
#include <boost/timer/timer.hpp>
#include <hpp/fcl/data_types.h>
#include <hpp/fcl/collision_object.h>
#include <hpp/fcl/collision_data.h>
#include <hpp/fcl/collision_func_matrix.h>
#include <hpp/fcl/timings.h>
namespace hpp
{
......@@ -113,7 +112,7 @@ public:
std::size_t res;
{
boost::timer::cpu_timer timer;
Timer timer;
if (swap_geoms) {
res = func(o2, tf2, o1, tf1, &solver, request, result);
result.swapObjects();
......
......@@ -42,11 +42,11 @@
#include <vector>
#include <set>
#include <limits>
#include <boost/timer/timer.hpp>
#include <hpp/fcl/collision_object.h>
#include <hpp/fcl/config.hh>
#include <hpp/fcl/data_types.h>
#include <hpp/fcl/timings.h>
namespace hpp
{
......@@ -173,7 +173,7 @@ struct HPP_FCL_DLLAPI QueryResult
support_func_guess_t cached_support_func_guess;
/// @brief timings for the given request
boost::timer::cpu_times timings;
CPUTimes timings;
QueryResult()
: cached_gjk_guess(Vec3f::Zero())
......
......@@ -38,11 +38,10 @@
#ifndef HPP_FCL_DISTANCE_H
#define HPP_FCL_DISTANCE_H
#include <boost/timer/timer.hpp>
#include <hpp/fcl/collision_object.h>
#include <hpp/fcl/collision_data.h>
#include <hpp/fcl/distance_func_matrix.h>
#include <hpp/fcl/timings.h>
namespace hpp
{
......@@ -106,7 +105,7 @@ public:
FCL_REAL res;
{
boost::timer::cpu_timer timer;
Timer timer;
if (swap_geoms) {
res = func(o2, tf2, o1, tf1, &solver, request, result);
if (request.enable_nearest_points) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment