projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2325315
)
Quick hack to time POST.
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 1 May 2011 20:54:42 +0000
(20:54 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 1 May 2011 20:54:42 +0000
(20:54 +0000)
fips/fips_test_suite.c
patch
|
blob
|
history
diff --git
a/fips/fips_test_suite.c
b/fips/fips_test_suite.c
index 8192eb2cc87a9e3a1268f0ea2987e769cbc35536..2cdb03b36538ed62ef25120860cfd7a56e698eed 100644
(file)
--- a/
fips/fips_test_suite.c
+++ b/
fips/fips_test_suite.c
@@
-920,11
+920,21
@@
int main(int argc,char **argv)
exit(1);
}
if (!no_exit) {
+#ifdef FIPS_POST_TIME
+ clock_t start, end;
+#endif
fips_algtest_init_nofips();
+#ifdef FIPS_POST_TIME
+ start = clock();
+#endif
if (!FIPS_mode_set(1)) {
printf("Power-up self test failed\n");
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");
exit(0);
}