1. Timing function update.
#include <getopt.h>\r
#include <stdbool.h>\r
#include <time.h>\r
+#include <unistd.h>\r
\r
#include <ext4_filedev.h>\r
#include <io_raw.h>\r
#include <ext4.h>\r
\r
+#ifdef WIN32\r
+#include <windows.h>\r
+#endif\r
+\r
/**@brief Input stream name.*/\r
char input_name[128] = "ext2";\r
\r
\r
static clock_t get_ms(void)\r
{\r
- return (clock() * 1000) / (CLOCKS_PER_SEC);\r
+ struct timeval t;\r
+ gettimeofday(&t);\r
+ return (t.tv_sec * 1000) + (t.tv_usec / 1000);\r
}\r
\r
static bool dir_test(int len)\r