mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
capture: add 64-bit time stamp for start time
We keep the start time as a iso8601 string, which is useful, but not enough for relative timestamps to the epoch (start time). Include a clock time in the same clock domain.
This commit is contained in:
@ -396,6 +396,7 @@ sp_capture_writer_new_from_fd (int fd,
|
||||
#endif
|
||||
header->padding = 0;
|
||||
g_strlcpy (header->capture_time, nowstr, sizeof header->capture_time);
|
||||
header->time = SP_CAPTURE_CURRENT_TIME;
|
||||
memset (header->suffix, 0, sizeof header->suffix);
|
||||
|
||||
self->pos += sizeof *header;
|
||||
|
||||
Reference in New Issue
Block a user