Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: util/win/time.h

Issue 1119393003: win: Add support for CPUTimes and StartTime to snapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@generate-dump
Patch Set: fix whitespace error Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/win/process_snapshot_win.cc ('k') | util/win/time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/time.h
diff --git a/util/win/time.h b/util/win/time.h
index e61a8461bf987c45fd38bc7452633529ae159c83..7cc0094f35e2d28d32c1acaf40e57ea533011a2b 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
+//! an interval of elapsed time.
+timeval FiletimeToTimevalInterval(const FILETIME& filetime);
+
//! \brief Similar to POSIX gettimeofday(), gets the current system time in UTC.
void GetTimeOfDay(timeval* tv);
« no previous file with comments | « snapshot/win/process_snapshot_win.cc ('k') | util/win/time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698