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:
@ -783,3 +783,14 @@ handle_errno:
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gint64
|
||||
sp_capture_reader_get_start_time (SpCaptureReader *self)
|
||||
{
|
||||
g_return_val_if_fail (self != NULL, 0);
|
||||
|
||||
if (self->endian != G_BYTE_ORDER)
|
||||
return GUINT64_SWAP_LE_BE (self->header.time);
|
||||
|
||||
return self->header.time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user