security/vboot: Add timestamps when loading verstage

We are not currently tracking how long it takes to load verstage. The
enum values already exist, they just weren't used.

BUG=b:179092979
TEST=Dump timestamps
 501:starting to load verstage                         2,280,656 (1)
 502:finished loading verstage                         2,340,845 (60,189)

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I2cde58cb8aa796829a4e054e6925e2394973484b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55370
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/src/security/vboot/vboot_loader.c b/src/security/vboot/vboot_loader.c
index 9ca6259..482c6fb 100644
--- a/src/security/vboot/vboot_loader.c
+++ b/src/security/vboot/vboot_loader.c
@@ -10,6 +10,7 @@
 #include <security/vboot/misc.h>
 #include <security/vboot/symbols.h>
 #include <security/vboot/vboot_common.h>
+#include <timestamp.h>
 
 /* Ensure vboot configuration is valid: */
 _Static_assert(CONFIG(VBOOT_STARTS_IN_BOOTBLOCK) +
@@ -51,8 +52,10 @@
 
 		printk(BIOS_DEBUG, "VBOOT: Loading verstage.\n");
 
+		timestamp_add_now(TS_START_COPYVER);
 		if (cbfs_prog_stage_load(&verstage))
 			die("failed to load verstage");
+		timestamp_add_now(TS_END_COPYVER);
 
 		/* verify and select a slot */
 		prog_run(&verstage);