dlt_user.so send log with timestamp overflow #563
-
uint32_t dlt_uptime(void)
{
#if defined (__WIN32__) || defined(_MSC_VER)
return (uint32_t)(GetTickCount() * 10); /* GetTickCount() return DWORD */
#else
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
return (uint32_t)ts.tv_sec * 10000 + (uint32_t)ts.tv_nsec / 100000; /* in 0.1 ms = 100 us */
else
return 0;
#endif uint32_t maximum=4294967295 val=4294967295//10000
print(val)
print(429496/3600/24) #dlt log limit in about 5 days Question: maybe we should conside about change the precision of log timestamp |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I would like to continue this topic in discussion tag. |
Beta Was this translation helpful? Give feedback.
-
Hello @jack-liuhang |
Beta Was this translation helpful? Give feedback.
-
Hello @jack-liuhang [PRS_Dlt_01004] ⌈If the Log and Trace message is a Data Message (Verbose Mode However, DLT team currently do not plan any release for dlt major version 3.0, so I have no idea of dlt-daemon future. |
Beta Was this translation helpful? Give feedback.
Hello @jack-liuhang
For me, this would be the current implementation based on R19-11
[PRS_Dlt_00323] ⌈The Timestamp field (TMSP) shall be a 32-bit unsigned integer.⌋
(RS_LT_00017)
The time resolution 0.1 ms defined at [Dlt309]
Regards