From: compudj Date: Tue, 13 Sep 2005 19:34:54 +0000 (+0000) Subject: add get start time monotonic X-Git-Tag: v0.12.20~2313 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bf33dd5091178cd0ad175b1914d74056db60e7af;p=lttv.git add get start time monotonic git-svn-id: http://ltt.polymtl.ca/svn@1176 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 71ef9bca..2e8ec3a1 100644 --- a/ltt/branches/poly/ltt/trace.h +++ b/ltt/branches/poly/ltt/trace.h @@ -141,10 +141,14 @@ gchar * ltt_trace_system_description_domain_name (LttSystemDescription * s); gchar * ltt_trace_system_description_description (LttSystemDescription * s); -/* get the start time of the trace */ +/* get the NTP start time of the trace */ LttTime ltt_trace_start_time(LttTrace *t); +/* get the monotonic start time of the trace */ + +LttTime ltt_trace_start_time_monotonic(LttTrace *t); + /* copy tracefile info over another. Used for sync. */ LttTracefile *ltt_tracefile_new(); void ltt_tracefile_destroy(LttTracefile *tf); diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index af3b02fe..b2ef3131 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -2555,12 +2555,18 @@ char * ltt_trace_system_description_description (LttSystemDescription * s) } -/* get the start time of the trace */ +/* get the NTP corrected start time of the trace */ LttTime ltt_trace_start_time(LttTrace *t) { return t->start_time; } +/* get the monotonic start time of the trace */ +LttTime ltt_trace_start_time_monotonic(LttTrace *t) +{ + return t->start_time_from_tsc; +} + LttTracefile *ltt_tracefile_new() { return g_new(LttTracefile, 1);