Example for using the logging facility
- Author
- MIP
- Todo:
- fix WIN32 performance counters and TimeMeasure realtime / wall clock counters.
#include <Base/Common/LeakChecking.h>
#include <Base/Debug/Timing.hh>
#include <iostream>
#ifdef WIN32
# include <windows.h>
#endif
using namespace std;
void func(void)
{
{
unsigned int n=10000;
int * p = new int[n];
for (unsigned int i=0; i<n; i++)
p[i] =0;
delete[] p;
}
#ifdef WIN32
LARGE_INTEGER time;
if (QueryPerformanceCounter(&time) == 0){
}
#endif
}
int main(int argc, char *argv[])
{
func();
return 0;
}