rs_time.rsh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 The Android Open Source Project
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00024 #ifndef __RS_TIME_RSH__
00025 #define __RS_TIME_RSH__
00026 
00031 typedef int rs_time_t;
00032 
00049 typedef struct {
00050     int tm_sec;     
00051     int tm_min;     
00052     int tm_hour;    
00053     int tm_mday;    
00054     int tm_mon;     
00055     int tm_year;    
00056     int tm_wday;    
00057     int tm_yday;    
00058     int tm_isdst;   
00059 } rs_tm;
00060 
00070 extern rs_time_t __attribute__((overloadable))
00071     rsTime(rs_time_t *timer);
00072 
00083 extern rs_tm * __attribute__((overloadable))
00084     rsLocaltime(rs_tm *local, const rs_time_t *timer);
00085 
00091 extern int64_t __attribute__((overloadable))
00092     rsUptimeMillis(void);
00093 
00099 extern int64_t __attribute__((overloadable))
00100     rsUptimeNanos(void);
00101 
00108 extern float __attribute__((overloadable))
00109     rsGetDt(void);
00110 
00111 #endif
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.