Skip to content

Commit 7e042ed

Browse files
committed
profiler shows date and time
1 parent 23572eb commit 7e042ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rewrite/src/profiler/profiler.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ void DrawResults()
8484

8585
char string[128];
8686

87-
ND_DecalFont_DrawLine("1s 15720", 0x14, 0x8, 2, 0);
87+
// Draw text centered on-screen
88+
// 0x100 - midpoint, 0x800 - center
89+
ND_sprintf(string, "%s %s", __DATE__, __TIME__);
90+
ND_DecalFont_DrawLine(string, 0x100, 0x8, 2, 0x8000);
8891

8992
int numTest = sizeof(tests) / sizeof(struct BenchTest);
9093

0 commit comments

Comments
 (0)