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

Unified Diff: mojo/public/c/system/types.h

Issue 847703006: Minor tweaks to API documentation and code comments. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Clarifies comments on MojoTimeTicks and getter function Created 5 years, 11 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
Index: mojo/public/c/system/types.h
diff --git a/mojo/public/c/system/types.h b/mojo/public/c/system/types.h
index a88b024fe7eed15cc06d14742bac4653c6738523..f228384ad24d3e4872b44b05ff36bb65a324b78b 100644
--- a/mojo/public/c/system/types.h
+++ b/mojo/public/c/system/types.h
@@ -17,7 +17,16 @@
// TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior
// (typically they'll be ignored), not necessarily an error.
-// |MojoTimeTicks|: Used to specify time ticks. Value is in microseconds.
+// |MojoTimeTicks|: The amount of time, in units of microseconds, that has
viettrungluu 2015/01/30 22:34:17 How about, simply: "A time delta, in microseconds,
ggowan 2015/01/30 23:17:12 I think that somebody who is coming here to look a
+// passed since some undefined point in the past. The values are only meaningful
+// relative to other values obtained from the same device without an intervening
+// system restart. Such values are guaranteed to be weakly
+// monotonically-increasing with the passage of real time, meaning they will not
+// always advance, but they will never go backwards (unlike time values with a
+// well-defined epoch). Although the units are microseconds, the values should
+// not be assumed to be at that level of precision. The actual precision varies
+// depending on hardware and platform, and is typically in the range of ~1-15
+// ms.
typedef int64_t MojoTimeTicks;

Powered by Google App Engine
This is Rietveld 408576698