libatomprobe
Library for Atom Probe Tomography (APT) computation
Macros | Functions | Variables
kd-example.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <sys/time.h>
#include "atomprobe/atomprobe.h"
Include dependency graph for kd-example.cpp:

Go to the source code of this file.

Macros

#define TIME_START()   timeval TIME_DEBUG_t; gettimeofday(&TIME_DEBUG_t,NULL);
 
#define TIME_END()
 
#define M_PI   3.141596254
 

Functions

bool callback ()
 
int main ()
 

Variables

unsigned int progress =0
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.141596254

◆ TIME_END

#define TIME_END ( )
Value:
float TIME_DELTA; {timeval TIME_DEBUG_tend; gettimeofday(&TIME_DEBUG_tend,NULL); \
TIME_DELTA=(TIME_DEBUG_tend.tv_sec - TIME_DEBUG_t.tv_sec) + ((float)TIME_DEBUG_tend.tv_usec-(float)TIME_DEBUG_t.tv_usec)/1.0e6;}

Definition at line 29 of file kd-example.cpp.

Referenced by main().

◆ TIME_START

#define TIME_START ( )    timeval TIME_DEBUG_t; gettimeofday(&TIME_DEBUG_t,NULL);

Definition at line 28 of file kd-example.cpp.

Referenced by main().

Function Documentation

◆ callback()

bool callback ( )

◆ main()

int main ( )

Variable Documentation

◆ progress

unsigned int progress =0

Definition at line 26 of file kd-example.cpp.

Referenced by callback(), main(), and AtomProbe::ProgressBar::update().