OpenStructure
Macros
debug.hh File Reference
#include <iostream>
#include <ctime>

Go to the source code of this file.

Macros

#define DEBUG_TIMER_START   clock_t debug_timer_start = clock();
 
#define DEBUG_TIMER_END
 

Macro Definition Documentation

◆ DEBUG_TIMER_END

#define DEBUG_TIMER_END
Value:
clock_t debug_timer_end = clock(); \
std::cerr << "DEBUG TIME: " << 1.0e6*static_cast<Real>(debug_timer_end-debug_timer_start)/CLOCKS_PER_SEC << " us (" << (debug_timer_end-debug_timer_start) << " ticks)" << std::endl;
float Real
Definition: base.hh:44

Definition at line 32 of file debug.hh.

◆ DEBUG_TIMER_START

#define DEBUG_TIMER_START   clock_t debug_timer_start = clock();

Definition at line 31 of file debug.hh.