1*062a843bSAndroid Build Coastguard Worker /* 2*062a843bSAndroid Build Coastguard Worker * Copyright (C) 2013 The Android Open Source Project 3*062a843bSAndroid Build Coastguard Worker * 4*062a843bSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*062a843bSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*062a843bSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*062a843bSAndroid Build Coastguard Worker * 8*062a843bSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*062a843bSAndroid Build Coastguard Worker * 10*062a843bSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*062a843bSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*062a843bSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*062a843bSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*062a843bSAndroid Build Coastguard Worker * limitations under the License. 15*062a843bSAndroid Build Coastguard Worker */ 16*062a843bSAndroid Build Coastguard Worker 17*062a843bSAndroid Build Coastguard Worker #ifndef LIBRILUTILS_H 18*062a843bSAndroid Build Coastguard Worker #define LIBRILUTILS_H 19*062a843bSAndroid Build Coastguard Worker 20*062a843bSAndroid Build Coastguard Worker #include <stdint.h> 21*062a843bSAndroid Build Coastguard Worker 22*062a843bSAndroid Build Coastguard Worker #ifdef __cplusplus 23*062a843bSAndroid Build Coastguard Worker extern "C" { 24*062a843bSAndroid Build Coastguard Worker #endif 25*062a843bSAndroid Build Coastguard Worker 26*062a843bSAndroid Build Coastguard Worker /** 27*062a843bSAndroid Build Coastguard Worker * Return system time in nanos. 28*062a843bSAndroid Build Coastguard Worker * 29*062a843bSAndroid Build Coastguard Worker * This is a monotonicly increasing clock and 30*062a843bSAndroid Build Coastguard Worker * return the same value as System.nanoTime in java. 31*062a843bSAndroid Build Coastguard Worker */ 32*062a843bSAndroid Build Coastguard Worker uint64_t ril_nano_time(); 33*062a843bSAndroid Build Coastguard Worker 34*062a843bSAndroid Build Coastguard Worker #ifdef __cplusplus 35*062a843bSAndroid Build Coastguard Worker } 36*062a843bSAndroid Build Coastguard Worker #endif 37*062a843bSAndroid Build Coastguard Worker 38*062a843bSAndroid Build Coastguard Worker #endif // LIBRILUTILS_H 39