Provide msclock() as Milliseconds timer for performance measures (#231)

- don't use clock(). It has different functionalities in Windows and Linux
- move sleep functions to util.h
This commit is contained in:
pwpiwi 2017-03-12 15:06:27 +01:00 committed by GitHub
parent 0ca9bc0e99
commit acf0582d53
29 changed files with 162 additions and 150 deletions

View file

@ -8,7 +8,6 @@
// CRC Calculations from the software reveng commands
//-----------------------------------------------------------------------------
#include <stdlib.h>
#ifdef _WIN32
# include <io.h>
# include <fcntl.h>
@ -19,8 +18,8 @@
#include <stdio.h>
#include <string.h>
//#include <stdlib.h>
//#include <ctype.h>
#include <stdlib.h>
#include <ctype.h>
#include "cmdmain.h"
#include "cmdcrc.h"
#include "reveng/reveng.h"