summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-10 21:59:10 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-10 21:59:10 +0000
commit30e2eb794d1df8ed33c6b10483ee912b9239e075 (patch)
tree6f65b68b0d51c92ed280a8eb42169f475e3e0ad0 /media
parent8e69495160c6548aca20903b10b5c44f76958c21 (diff)
downloadchromium_src-30e2eb794d1df8ed33c6b10483ee912b9239e075.zip
chromium_src-30e2eb794d1df8ed33c6b10483ee912b9239e075.tar.gz
chromium_src-30e2eb794d1df8ed33c6b10483ee912b9239e075.tar.bz2
media: Remove a not accurated TODO.
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2901007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/media_win.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/media/base/media_win.cc b/media/base/media_win.cc
index cc4f736..6f9e0f8 100644
--- a/media/base/media_win.cc
+++ b/media/base/media_win.cc
@@ -17,15 +17,6 @@
#ifdef TESTING
#include "base/string_util.h"
#include "base/time.h"
-
-namespace {
-// Fetch current time as milliseconds.
-// Return as double for high duration and precision.
-// TODO(fbarchard): integrate into base/time.h
-static inline double GetTime() {
- return base::TimeTicks::HighResNow().ToInternalValue() * (1.0 / 1000.0);
-}
-}
#endif
namespace media {
@@ -69,7 +60,7 @@ bool InitializeMediaLibrary(const FilePath& base_path) {
for (size_t i = 0; i < arraysize(path_keys); ++i) {
FilePath path = base_path.Append(GetDLLName(path_keys[i]));
#ifdef TESTING
- double dll_loadtime_start = GetTime();
+ base::TimeTicks dll_loadtime_start = base::TimeTicks::HighResNow();
#endif
// Use alternate DLL search path so we don't load dependencies from the
@@ -79,9 +70,9 @@ bool InitializeMediaLibrary(const FilePath& base_path) {
if (!libs[i])
break;
#ifdef TESTING
- double dll_loadtime_end = GetTime();
+ base::TimeTicks dll_loadtime_end = base::TimeTicks::HighResNow();
std::wstring outputbuf = StringPrintf(L"DLL loadtime %5.2f ms, %ls\n",
- dll_loadtime_end - dll_loadtime_start,
+ (dll_loadtime_end - dll_loadtime_start).InMillisecondsF(),
cpath);
OutputDebugStringW(outputbuf.c_str());
#endif