Measure 'ninja_hint' time

Bug: 273282046
Test: m nothing and check out/soong_build_metrics.pb
Change-Id: I6440c3279b141c1f057145b668f8b96c45eaa75d
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index 2723dfd..96f65a4 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -257,6 +257,8 @@
 }
 
 func writeNinjaHint(ctx *android.Context) error {
+	ctx.BeginEvent("ninja_hint")
+	defer ctx.EndEvent("ninja_hint")
 	// The current predictor focuses on reducing false negatives.
 	// If there are too many false positives (e.g., most modules are marked as positive),
 	// real long-running jobs cannot run early.