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

Unified Diff: mojo/edk/embedder/simple_platform_support.cc

Issue 1345583002: Add GetTimeTicksNow() to PlatformSupport. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: clarify Created 5 years, 3 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 | « mojo/edk/embedder/simple_platform_support.h ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/simple_platform_support.cc
diff --git a/mojo/edk/embedder/simple_platform_support.cc b/mojo/edk/embedder/simple_platform_support.cc
index 4207120fc7b91601c743c85f22f81a89e53b36f2..f3143239b2a4f6de1e861a9ce247d5785f81f669 100644
--- a/mojo/edk/embedder/simple_platform_support.cc
+++ b/mojo/edk/embedder/simple_platform_support.cc
@@ -5,11 +5,16 @@
#include "mojo/edk/embedder/simple_platform_support.h"
#include "base/rand_util.h"
+#include "base/time/time.h"
#include "mojo/edk/embedder/simple_platform_shared_buffer.h"
namespace mojo {
namespace embedder {
+MojoTimeTicks SimplePlatformSupport::GetTimeTicksNow() {
+ return base::TimeTicks::Now().ToInternalValue();
+}
+
void SimplePlatformSupport::GetCryptoRandomBytes(void* bytes,
size_t num_bytes) {
base::RandBytes(bytes, num_bytes);
« no previous file with comments | « mojo/edk/embedder/simple_platform_support.h ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698