Expose time stats

This commit is contained in:
Krzosa Karol
2023-01-01 19:59:27 +01:00
parent aa994c999a
commit 1121e4aa84
4 changed files with 28 additions and 26 deletions

View File

@@ -771,7 +771,7 @@ gen_ast(Ast *ast){
CORE_Static String
compile_to_c_code(){
pctx->generating_time_begin = os_time();
pctx->time.code_generation = os_time();
prefixed_string_type = string_fmt(pctx->perm, "%QString", pctx->symbol_prefix);
if(pctx->single_header_library_mode){
@@ -977,6 +977,6 @@ typedef struct String{
String string_result = string_flatten(pctx->perm, &pctx->gen);
pctx->generating_time_end = os_time();
pctx->time.code_generation = os_time() - pctx->time.code_generation;
return string_result;
}