Browse Source

Support `-show-timings` for `odin doc`

gingerBill 6 months ago
parent
commit
faaa05536f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/main.cpp

+ 5 - 0
src/main.cpp

@@ -3593,10 +3593,15 @@ int main(int arg_count, char const **arg_ptr) {
 	}
 
 	if (build_context.generate_docs) {
+		MAIN_TIME_SECTION("generate documentation");
 		if (global_error_collector.count != 0) {
 			return 1;
 		}
 		generate_documentation(checker);
+
+		if (build_context.show_timings) {
+			show_timings(checker, &global_timings);
+		}
 		return 0;
 	}