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

Unified Diff: chrome/browser/resources/net_internals/time_util.js

Issue 8474001: Add a timeline view to about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Comment fix Created 9 years, 1 month 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: chrome/browser/resources/net_internals/time_util.js
===================================================================
--- chrome/browser/resources/net_internals/time_util.js (revision 110334)
+++ chrome/browser/resources/net_internals/time_util.js (working copy)
@@ -32,8 +32,18 @@
return new Date(timeStampMs);
}
+ /**
+ * Returns the current time.
+ *
+ * @returns {number} Milliseconds since the Unix epoch.
+ */
+ function getCurrentTime() {
+ return (new Date()).getTime();
+ }
+
return {
setTimeTickOffset: setTimeTickOffset,
- convertTimeTicksToDate: convertTimeTicksToDate
+ convertTimeTicksToDate: convertTimeTicksToDate,
+ getCurrentTime: getCurrentTime
};
})();
« no previous file with comments | « chrome/browser/resources/net_internals/test_view.js ('k') | chrome/browser/resources/net_internals/timeline_data_series.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698