long start_time = System.currentTimeMillis(); View.draw(canvas); long end_time = System.currentTimeMillis(); long spend_time = end_time - start_time; Log.i(TAG,"mView.draw: spend_time = " + spend_time);
#include <stdio.h>
#include <sys/time.h>
void main ()
{
struct timeval time;
gettimeofday(&time, NULL);
printf ( "\007The current date/time is: %lld\n", time.tv_sec * 1000 + time.tv_usec /1000);
}
#include <linux/time.h> #include <linux/rtc.h> struct timespec time_start, time_end; struct rtc_time tm_start, tm_end; long time_nsec = 0; getnstimeofday(&time_start); rtc_time_to_tm(time_end.tv_sec, &tm_start); printk(KERN_ERR "\n (%d-d-d d:d:d.%09lu UTC)\n", tm_start.tm_year + 1900, tm_start.tm_mon + 1, tm_start.tm_mday, tm_start.tm_hour, tm_start.tm_min, tm_start.tm_sec, time_start.tv_nsec); ....... getnstimeofday(&time_end); rtc_time_to_tm(time_end.tv_sec, &tm_end); time_nsec = time_end.tv_nsec - time_start.tv_nsec; printk(KERN_ERR "\n tid: %d, common: %s \n", current->pid, current->comm); printk(KERN_ERR "\n end(%d-d-d d:d:d.%09lu UTC)\n", tm_end.tm_year + 1900, tm_end.tm_mon + 1, tm_end.tm_mday, tm_end.tm_hour, tm_end.tm_min, tm_end.tm_sec, time_end.tv_nsec); printk(KERN_ERR "\n mdss_fb_commit_wq_handler end, time_nsec : %ld \n" , time_nsec);
import java.text.SimpleDateFormat;
SimpleDateFormat mFormat = new java.text.SimpleDateFormat("yyyy:MM:dd HH:mm:ss:SSS");
String time = mFormat.format(System.currentTimeMillis());
timeval tv;
gettimeofday(&tv, NULL);
int milli = tv.tv_usec / 1000;
char buffer [80];
strftime(buffer, 80, "%Y:%m:%d %H:%M:%S", localtime(&tv.tv_sec));
char currentTime[84] = "";
sprintf(currentTime, "%s.%d", buffer, milli);
ALOGD("time: %s \n", currentTime);
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有