Fixed displayed time issue on Windows

This commit is contained in:
wiire 2015-12-11 11:40:15 +01:00
parent f76900d9b4
commit 9459a7d25f

View File

@ -773,7 +773,7 @@ usage_err:
} }
c_end = clock(); c_end = clock();
long long ms_elapsed = (c_end - c_start) / 1000; unsigned long long ms_elapsed = (c_end - c_start) / (CLOCKS_PER_SEC / 1000);
k--; k--;
@ -825,7 +825,7 @@ usage_err:
} else { } else {
printf("\n [-] WPS pin not found!"); printf("\n [-] WPS pin not found!");
} }
printf("\n\n [*] Time taken: %lld s %lld ms\n\n", ms_elapsed / 1000, ms_elapsed % 1000); printf("\n\n [*] Time taken: %llu s %llu ms\n\n", ms_elapsed / 1000, ms_elapsed % 1000);
if (wps->warning) { if (wps->warning) {
printf("%s", wps->warning); printf("%s", wps->warning);