Quick hack to time POST.
This commit is contained in:
parent
2325315ba3
commit
a32ad6891b
@ -920,11 +920,21 @@ int main(int argc,char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (!no_exit) {
|
if (!no_exit) {
|
||||||
|
#ifdef FIPS_POST_TIME
|
||||||
|
clock_t start, end;
|
||||||
|
#endif
|
||||||
fips_algtest_init_nofips();
|
fips_algtest_init_nofips();
|
||||||
|
#ifdef FIPS_POST_TIME
|
||||||
|
start = clock();
|
||||||
|
#endif
|
||||||
if (!FIPS_mode_set(1)) {
|
if (!FIPS_mode_set(1)) {
|
||||||
printf("Power-up self test failed\n");
|
printf("Power-up self test failed\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#ifdef FIPS_POST_TIME
|
||||||
|
end = clock();
|
||||||
|
printf("Took %f seconds\n", ((double)(end - start))/CLOCKS_PER_SEC);
|
||||||
|
#endif
|
||||||
printf("Power-up self test successful\n");
|
printf("Power-up self test successful\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user