FIX: time printing, like difftime in MINGW enviroments needs to use 32b time.

This commit is contained in:
iceman1001 2016-04-23 13:02:20 +02:00
commit be6e909c5b
5 changed files with 8 additions and 4 deletions

View file

@ -1230,10 +1230,10 @@ int CmdHF14AMfChk(const char *Cmd) {
t1 = clock() - t1;
time(&end);
unsigned long elapsed_time = difftime(end, start);
if ( t1 > 0 )
printf("\nTime in checkkeys: %.0f ticks %u seconds\n", (float)t1, elapsed_time);
PrintAndLog("\nTime in checkkeys: %.0f ticks %u seconds\n", (float)t1, elapsed_time);
// 20160116 If Sector A is found, but not Sector B, try just reading it of the tag?
if ( keyType != 1 ) {
PrintAndLog("testing to read key B...");