fixed log_2 for ARM arch

This commit is contained in:
eddyem
2015-02-09 08:34:17 +03:00
parent b53a659d40
commit c14be0eb90
6 changed files with 189 additions and 20 deletions

View File

@@ -21,6 +21,20 @@
#include "usefull_macros.h"
#include <sys/time.h>
/**
* function for different purposes that need to know time intervals
* @return double value: time in seconds
*/
double dtime(){
double t;
struct timeval tv;
gettimeofday(&tv, NULL);
t = tv.tv_sec + ((double)tv.tv_usec)/1e6;
return t;
}
/******************************************************************************\
* Coloured terminal
\******************************************************************************/