This commit is contained in:
Tert0 2025-06-12 10:58:27 +03:00 committed by GitHub
commit cd0f65aae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 184 additions and 8 deletions

View file

@ -141,3 +141,9 @@ bool sway_set_cloexec(int fd, bool cloexec) {
}
return true;
}
uint32_t sway_get_current_time_msec(void) {
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
return now.tv_sec * 1000 + now.tv_nsec / 1000000;
}