+/**
+ * timemono_sub - subtract a relative time from a monotonic time
+ * @mono: the monotonic time.
+ * @rel: the relative time.
+ *
+ * This returns a well formed struct timemono of @mono - @rel.
+ *
+ * Example:
+ * // We do one every second.
+ * static struct timemono previous_time(void)
+ * {
+ * return timemono_sub(time_mono(), time_from_msec(1000));
+ * }
+ */
+static inline struct timemono timemono_sub(struct timemono mono, struct timerel rel)
+{
+ struct timemono t;
+
+ t.ts = time_sub_(mono.ts, rel.ts);
+ return t;
+}
+
+