Small fixes: uptime, printf %f, math, and readme

This commit is contained in:
xamidev
2024-08-08 13:28:47 +02:00
parent 99b26c1220
commit da127ee6b2
6 changed files with 23 additions and 28 deletions

View File

@@ -35,5 +35,7 @@ void program_clear()
void program_uptime()
{
printf("%d ticks\n", uptime());
int ticks = uptime();
double seconds = ticks/18.2065; // PIC channel 0 freq
printf("%d ticks\t%f seconds\n", ticks, seconds);
}