Index: util/win/time.h |
diff --git a/util/win/time.h b/util/win/time.h |
index e61a8461bf987c45fd38bc7452633529ae159c83..4ee23bb49be0303bf2d4a3010a73465dfff4019c 100644 |
--- a/util/win/time.h |
+++ b/util/win/time.h |
@@ -16,9 +16,18 @@ |
#define CRASHPAD_UTIL_WIN_TIME_H_ |
#include <sys/time.h> |
+#include <windows.h> |
namespace crashpad { |
+//! \brief Convert Windows `FILETIME` to `timeval`, converting from Windows |
+//! epoch to POSIX epoch. |
+timeval FiletimeToTimevalEpoch(const FILETIME& filetime); |
+ |
+//! \brief Convert Windows `FILETIME` to `timeval`, treating the values as |
+//! amounts of elapsed time. |
+timeval FiletimeToTimevalAmount(const FILETIME& filetime); |
Mark Mentovai
2015/05/05 19:53:36
Interval sounds snazzier than amount.
scottmg
2015/05/05 20:02:49
:) Done.
|
+ |
//! \brief Similar to POSIX gettimeofday(), gets the current system time in UTC. |
void GetTimeOfDay(timeval* tv); |