temporarily reverted to FLANN 1.5 (FLANN 1.6 is put to a separate branch FLANN_1.6 until it's stabilized)

This commit is contained in:
Vadim Pisarevsky
2011-06-20 09:20:17 +00:00
parent 310ed83343
commit 848be8dfe1
36 changed files with 3591 additions and 7549 deletions

View File

@@ -28,8 +28,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*************************************************************************/
#ifndef FLANN_TIMER_H
#define FLANN_TIMER_H
#ifndef _OPENCV_TIMER_H_
#define _OPENCV_TIMER_H_
#include <time.h>
@@ -42,7 +42,7 @@ namespace cvflann
*
* Can be used to time portions of code.
*/
class StartStopTimer
class CV_EXPORTS StartStopTimer
{
clock_t startTime;
@@ -64,16 +64,14 @@ public:
/**
* Starts the timer.
*/
void start()
{
void start() {
startTime = clock();
}
/**
* Stops the timer and updates timer value.
*/
void stop()
{
void stop() {
clock_t stopTime = clock();
value += ( (double)stopTime - startTime) / CLOCKS_PER_SEC;
}
@@ -81,13 +79,12 @@ public:
/**
* Resets the timer value to 0.
*/
void reset()
{
void reset() {
value = 0;
}
};
}
}// namespace cvflann
#endif // FLANN_TIMER_H
#endif // _OPENCV_TIMER_H_