- Remove.

This commit is contained in:
Sylvain Pion 2001-07-23 12:01:51 +00:00
parent bc1d575769
commit 048fbb196a
2 changed files with 0 additions and 170 deletions

View File

@ -1,127 +0,0 @@
// ============================================================================
//
// Copyright (c) 1999 The CGAL Consortium
//
//
//
//
//
// ----------------------------------------------------------------------------
// release :
// release_date :
//
// file : examples/Convex_hull_2/ch_timing_2.C
// revision : $Revision$
// revision_date : $Date$
// author(s) : Stefan Schirra
//
// coordinator : MPI, Saarbruecken
// ============================================================================
#ifndef CGAL_CH_TIMING_2_C
#define CGAL_CH_TIMING_2_C
#ifndef CGAL_CH_TIMING_2_H
#include <CGAL/ch_timing_2.h>
#endif // CGAL_CH_TIMING_2_H
CGAL_BEGIN_NAMESPACE
template <class ForwardIterator, class OutputIterator, class Traits>
void
ch_timing( ForwardIterator first, ForwardIterator last,
OutputIterator result,
int iterations,
const Traits& ch_traits)
{
int i;
CGAL::Timer Clck;
double delta_t;
std::cout << std::endl;
OutputIterator restart = result;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_akl_toussaint( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_akl_toussaint: " << delta_t << std::endl;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_eddy( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_eddy: " << delta_t << std::endl;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_bykat( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_bykat " << delta_t << std::endl;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_bykat_with_threshold( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_bykat_with_threshold: " << delta_t << std::endl;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_graham_andrew( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_graham_andrew: " << delta_t << std::endl;
Clck.start();
for (i=0; i < iterations; i++)
{
result = restart;
ch_jarvis( first, last , result, ch_traits);
}
Clck.stop();
delta_t = Clck.time();
Clck.reset();
std::cout << "ch_jarvis: " << delta_t << std::endl;
}
CGAL_END_NAMESPACE
#endif // CGAL_CH_TIMING_2_C

View File

@ -1,43 +0,0 @@
// ============================================================================
//
// Copyright (c) 1999 The CGAL Consortium
//
//
//
//
//
// ----------------------------------------------------------------------------
// release :
// release_date :
//
// file : examples/Convex_hull_2/include/CGAL/ch_timing_2.h
// revision : $Revision$
// revision_date : $Date$
// author(s) : Stefan Schirra
//
// coordinator : MPI, Saarbruecken
// ============================================================================
#ifndef CGAL_CH_TIMING_2_H
#define CGAL_CH_TIMING_2_H
#include <CGAL/Timer.h>
CGAL_BEGIN_NAMESPACE
template <class ForwardIterator, class OutputIterator, class Traits>
void
ch_timing( ForwardIterator first, ForwardIterator last,
OutputIterator result,
int iterations,
const Traits& ch_traits);
CGAL_END_NAMESPACE
#ifdef CGAL_CFG_NO_AUTOMATIC_TEMPLATE_INCLUSION
#include <CGAL/ch_timing_2.C>
#endif // CGAL_CFG_NO_AUTOMATIC_TEMPLATE_INCLUSION
#endif // CGAL_CH_TIMING_2_H