diff options
| author | Federico Angelilli <code@fedang.net> | 2024-09-20 23:57:19 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-09-20 23:57:19 +0200 |
| commit | ae59c294bfd4b73f6e751a3103c2ee7501068492 (patch) | |
| tree | efbcded195dfd24f9534f69f47f728ecca34b762 /src/util.c | |
| parent | bc70dead7fb518f073fecb21a04fa374e9ad6dd0 (diff) | |
Start parsing effects
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ void color_print(FILE *stream, color_t *color) fprintf(stream, "#%02x%02x%02x%02x", r, g, b, a); } -struct timespec timespec_from_ms(long ms) +const struct timespec timespec_from_ms(long ms) { struct timespec ts = { .tv_sec = ms / 1000, @@ -37,7 +37,7 @@ struct timespec timespec_from_ms(long ms) return ts; } -long timespec_to_ms(struct timespec ts) +const long timespec_to_ms(struct timespec ts) { return (ts.tv_sec * 1000) + (ts.tv_nsec / 1000000ul); } |
