DGtal
1.5.beta
|
#include <iostream>
#include <numeric>
#include <chrono>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/PointVector.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtalCatch.h"
Go to the source code of this file.
Functions | |
void | tic () |
Starts timer. More... | |
double | toc () |
Ends timer and return elapsed time. More... | |
TEST_CASE_METHOD (BenchDomain, "Benchmarking HyperRectDomain iterators using custom implementation") | |
Variables | |
auto | tic_timer = std::chrono::high_resolution_clock::now() |
Timer used in tic and toc. More... | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This file is part of the DGtal library
Definition in file benchmarkHyperRectDomain.cpp.
TEST_CASE_METHOD | ( | BenchDomain | , |
"Benchmarking HyperRectDomain iterators using custom implementation" | |||
) |
Definition at line 89 of file benchmarkHyperRectDomain.cpp.
References domain, DGtal::Trace::info(), DGtal::HyperRectDomain< TSpace >::rbegin(), DGtal::HyperRectDomain< TSpace >::rend(), SECTION(), DGtal::HyperRectDomain< TSpace >::size(), DGtal::HyperRectDomain< TSpace >::subRange(), tic(), toc(), and DGtal::trace.
void tic | ( | ) |
Starts timer.
Definition at line 50 of file benchmarkHyperRectDomain.cpp.
References tic_timer.
Referenced by DGtal::QuickHull< TKernel >::computeConvexHull(), DGtal::QuickHull< TKernel >::setInput(), and TEST_CASE_METHOD().
double toc | ( | ) |
Ends timer and return elapsed time.
Definition at line 56 of file benchmarkHyperRectDomain.cpp.
References tic_timer.
Referenced by TEST_CASE_METHOD().
auto tic_timer = std::chrono::high_resolution_clock::now() |
Timer used in tic and toc.
Definition at line 47 of file benchmarkHyperRectDomain.cpp.