/* darkstat 3
- * copyright (c) 2001-2006 Emil Mikulic.
+ * copyright (c) 2001-2014 Emil Mikulic.
*
* now.h: a cache of the current time.
*
void now_init(void);
void now_update(void); /* once per event loop (in darkstat.c) */
-long now_real(void);
-long now_mono(void);
+time_t now_real(void);
+time_t now_mono(void);
-long mono_to_real(const long t);
-long real_to_mono(const long t);
+/* Monotonic times can be negative (a time from before the machine booted) so
+ * treat them as signed. */
+time_t mono_to_real(const int64_t t);
+int64_t real_to_mono(const time_t t);
/* Emits warnings if a call is too slow. */
struct timespec;