summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-internal-inl.h
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-02-02 15:14:30 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-02-02 15:15:23 (GMT)
commit6f21175f57afa370a707026fcaf246eb081d1639 (patch)
treef527314d4fde58f4113c0bfc5dbebaf73186ab8e /googletest/src/gtest-internal-inl.h
parentebedaa18c7cafa15f06ab3d814440e510fad9559 (diff)
downloadgoogletest-6f21175f57afa370a707026fcaf246eb081d1639.zip
googletest-6f21175f57afa370a707026fcaf246eb081d1639.tar.gz
googletest-6f21175f57afa370a707026fcaf246eb081d1639.tar.bz2
Add a trailing decimal point to FormatTimeInMillisAsSeconds() output when input
is an exact N seconds. PiperOrigin-RevId: 506610898 Change-Id: Idcd705c719e0e721148c350c8a14f27b9eb5c4f7
Diffstat (limited to 'googletest/src/gtest-internal-inl.h')
-rw-r--r--googletest/src/gtest-internal-inl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h
index 2c9db4f..9fbcfd3 100644
--- a/googletest/src/gtest-internal-inl.h
+++ b/googletest/src/gtest-internal-inl.h
@@ -92,7 +92,8 @@ GTEST_API_ TimeInMillis GetTimeInMillis();
// Returns true if and only if Google Test should use colors in the output.
GTEST_API_ bool ShouldUseColor(bool stdout_is_tty);
-// Formats the given time in milliseconds as seconds.
+// Formats the given time in milliseconds as seconds. If the input is an exact N
+// seconds, the output has a trailing decimal point (e.g., "N." intead of "N").
GTEST_API_ std::string FormatTimeInMillisAsSeconds(TimeInMillis ms);
// Converts the given time in milliseconds to a date string in the ISO 8601