Add new CefNowFromSystemTraceTime() method (issue #908).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1147 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-03-15 19:57:20 +00:00
parent b835143515
commit 25e54b1800
6 changed files with 45 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include "libcef/browser/thread_util.h"
#include "base/debug/trace_event.h"
#include "base/time.h"
bool CefBeginTracing(CefRefPtr<CefTraceClient> client,
const CefString& categories) {
@ -65,6 +66,9 @@ bool CefEndTracingAsync() {
return subscriber->EndTracingAsync();
}
int64 CefNowFromSystemTraceTime() {
return base::TimeTicks::NowFromSystemTraceTime().ToInternalValue();
}
// The below functions can be called from any process.