porting text editor

This commit is contained in:
Krzosa Karol
2025-04-07 08:37:06 +02:00
parent f9d1f14c7c
commit c82eccc02a
13 changed files with 690 additions and 117 deletions

View File

@@ -25,11 +25,11 @@ fn os_date_t os_universal_time(void) {
return result;
}
fn u64 os_get_microseconds(void) {
fn f64 os_microseconds(void) {
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
u64 result = t.tv_sec*million(1) + (t.tv_nsec/thousand(1));
return result;
return (f64)result;
}
fn f64 os_get_milliseconds(void) {