mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: add duration helper
This commit is contained in:
@ -41,6 +41,12 @@ SysprofTimeSpan *sysprof_time_span_copy (const SysprofTimeSpan *self);
|
|||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
void sysprof_time_span_free (SysprofTimeSpan *self);
|
void sysprof_time_span_free (SysprofTimeSpan *self);
|
||||||
|
|
||||||
|
static inline gint64
|
||||||
|
sysprof_time_span_duration (SysprofTimeSpan time_span)
|
||||||
|
{
|
||||||
|
return time_span.end_nsec - time_span.begin_nsec;
|
||||||
|
}
|
||||||
|
|
||||||
static inline SysprofTimeSpan
|
static inline SysprofTimeSpan
|
||||||
sysprof_time_span_relative_to (SysprofTimeSpan time_span,
|
sysprof_time_span_relative_to (SysprofTimeSpan time_span,
|
||||||
gint64 point)
|
gint64 point)
|
||||||
|
|||||||
Reference in New Issue
Block a user