time: new function to reset the context
@@ -45,6 +45,12 @@ enum flb_time_eventtime_fmt {
FLB_TIME_ETFMT_OTHER,
};
+static inline void flb_time_zero(struct flb_time *tm)
+{
+ tm->tm.tv_sec = 0;
+ tm->tm.tv_nsec = 0;
+}
+
int flb_time_get(struct flb_time *tm);
double flb_time_to_double(struct flb_time *tm);
int flb_time_diff(struct flb_time *time1,
