1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <stdint.h> 6 7 #include "base/time/time.h" 8 #include "jni/TimeUtils_jni.h" 9 10 namespace base { 11 namespace android { 12 JNI_TimeUtils_GetTimeTicksNowUs(JNIEnv * env,const JavaParamRef<jclass> & clazz)13static jlong JNI_TimeUtils_GetTimeTicksNowUs( 14 JNIEnv* env, 15 const JavaParamRef<jclass>& clazz) { 16 return (TimeTicks::Now() - TimeTicks()).InMicroseconds(); 17 } 18 19 } // namespace android 20 } // namespace base 21