You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first few timestamps appear to be correct (00:00:00.00, 00:00:00.086..., 00:00:00.172...,), but then in the next timestamp the fraction is actually smaller (00:00:00.003...).
A similar thing happens for the timestamps after 00:00:01 - the first few seem about right (00:00:01.036..., 00:00:01.123..., 00:00:01.209...) but then the next timestamp goes down (00:00:01.039...).
I think the issue is that the milliseconds are sometimes getting corrupted because for some reason they are being cast to uint8_t:
(Actually, even the fractional timestamps which appear to be correct may be off by a bit, because it seems that the microseconds and nanoseconds have the same issue.)
The text was updated successfully, but these errors were encountered:
joachimmetz
changed the title
Fractional seconds (milliseconds, microseconds, nanoseconds) sometimes off
libfdatetime_floatingtime_copy_to_utf8_string: Fractional seconds (milliseconds, microseconds, nanoseconds) sometimes off
May 27, 2024
Consider the following program:
This generates the following output:
The first few timestamps appear to be correct (00:00:00.00, 00:00:00.086..., 00:00:00.172...,), but then in the next timestamp the fraction is actually smaller (00:00:00.003...).
A similar thing happens for the timestamps after 00:00:01 - the first few seem about right (00:00:01.036..., 00:00:01.123..., 00:00:01.209...) but then the next timestamp goes down (00:00:01.039...).
I think the issue is that the milliseconds are sometimes getting corrupted because for some reason they are being cast to
uint8_t
:libfdatetime/libfdatetime/libfdatetime_floatingtime.c
Lines 496 to 500 in 47838ce
(Actually, even the fractional timestamps which appear to be correct may be off by a bit, because it seems that the microseconds and nanoseconds have the same issue.)
The text was updated successfully, but these errors were encountered: