diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-18 13:58:40 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-18 13:58:40 +0330 |
commit | bf024f847ff540ced7acf89a59b135f039bb33c1 (patch) | |
tree | 5b4f5f53c36442a6a784726d3d6f0bae869dae1d /src/main.c | |
parent | e26b306f5413a3fa7cb2e516b8662b32d7933db7 (diff) |
change print time to us from ns
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,8 +29,8 @@ static struct timespec add(struct timespec left, struct timespec right) { } static void printTime(struct timespec time) { - printf("%02ld:%02ld.%09ldns", time.tv_sec / 60, time.tv_sec % 60, - time.tv_nsec); + printf("%02ld:%02ld.%06ldus", time.tv_sec / 60, time.tv_sec % 60, + time.tv_nsec / 1000); } #endif |