| 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/base_jni_headers/TimeUtils_jni.h" |
| 8 | #include "base/time/time.h" |
| 9 | |
| 10 | namespace base { |
| 11 | namespace android { |
| 12 | |
| 13 | static jlong JNI_TimeUtils_GetTimeTicksNowUs(JNIEnv* env) { |
| 14 | return (TimeTicks::Now() - TimeTicks()).InMicroseconds(); |
| 15 | } |
| 16 | |
| 17 | } // namespace android |
| 18 | } // namespace base |
| 19 |