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

Unified Diff: base/i18n/time_formatting.h

Issue 2573183002: Add process start time and CPU time columns to task manager (Closed)
Patch Set: Fix nits Created 4 years 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 | « no previous file | base/i18n/time_formatting.cc » ('j') | base/i18n/time_formatting.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/time_formatting.h
diff --git a/base/i18n/time_formatting.h b/base/i18n/time_formatting.h
index 761dd98a5d427e8441b7b17405be2dcb39933a6b..b31be6c6fc1143568d01a792a9a072d74cdc81ab 100644
--- a/base/i18n/time_formatting.h
+++ b/base/i18n/time_formatting.h
@@ -80,6 +80,13 @@ BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time);
BASE_I18N_EXPORT string16 TimeDurationFormat(const TimeDelta& time,
const DurationFormatWidth width);
+// Formats a time duration of hours, minutes and seconds into various formats,
+// e.g., "3:07:30" or "3 hours, 7 minutes, 30 seconds". See DurationFormatWidth
+// for details.
+BASE_I18N_EXPORT string16
+TimeDurationWFormatWithSecondPrecison(const TimeDelta& time,
brucedawson 2016/12/19 21:51:05 Why 'W'Format? Also, consider FormatWithSeconds i
stanisc 2016/12/19 22:44:10 What about sub-second precision? Should we conside
chengx 2016/12/20 00:51:12 I vote for "WithSeconds", as the other one is "Wit
chengx 2016/12/20 00:51:12 Done.
+ const DurationFormatWidth width);
+
// Gets the hour clock type of the current locale. e.g.
// k12HourClock (en-US).
// k24HourClock (en-GB).
« no previous file with comments | « no previous file | base/i18n/time_formatting.cc » ('j') | base/i18n/time_formatting.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698