mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-11 15:56:09 -07:00
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:
parent
0ca9bc0e99
commit
acf0582d53
29 changed files with 162 additions and 150 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <readline/readline.h>
|
||||
#include <pthread.h>
|
||||
|
||||
|
@ -34,7 +33,7 @@ void PrintAndLog(char *fmt, ...)
|
|||
static FILE *logfile = NULL;
|
||||
static int logging=1;
|
||||
|
||||
// lock this section to avoid interlacing prints from different threats
|
||||
// lock this section to avoid interlacing prints from different threads
|
||||
pthread_mutex_lock(&print_lock);
|
||||
|
||||
if (logging && !logfile) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue