打印时间(MS级别)
发布日期:2021-06-30 18:52:36
浏览次数:3
分类:技术文章
本文共 2155 字,大约阅读时间需要 7 分钟。
--- a/android-lte/packages/apps/Camera/src/com/android/camera/Camera.java+++ b/android-lte/packages/apps/Camera/src/com/android/camera/Camera.java@@ -64,6 +64,9 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast;+import java.text.SimpleDateFormat;//owen.wei modify+import java.util.Date;//owen.wei modify+import android.text.format.DateFormat;//owen.wei modify import com.android.camera.ui.CameraPicker; import com.android.camera.ui.FaceView;@@ -397,7 +400,13 @@ public class Camera extends ActivityBase implements FocusManager.Listener, // We need to check whether the activity is paused before long // operations to ensure that onPause() can be done ASAP. if (mCancelled) return;+ //owen.wei modify add start+ SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");+ Date curDate = new Date(System.currentTimeMillis());+ mCameraDevice = Util.openCamera(Camera.this, mCameraId);++ mParameters = mCameraDevice.getParameters(); // Wait until all the initialization needed by startPreview are // done.@@ -410,6 +419,10 @@ public class Camera extends ActivityBase implements FocusManager.Listener, mHandler.sendEmptyMessage(CAMERA_OPEN_DONE); if (mCancelled) return; startPreview();+ Date endDate = new Date(System.currentTimeMillis());+ long diff = endDate.getTime() - curDate.getTime();+ Log.e(TAG, "curDate:"+String.valueOf(curDate)+"\nendDate:"+String.valueOf(endDate)+"\ndiff+ //owen.wei modify add end mHandler.sendEmptyMessage(START_PREVIEW_DONE); mOnResumeTime = SystemClock.uptimeMillis(); mHandler.sendEmptyMessage(CHECK_DISPLAY_ROTATION);
转载地址:https://linus.blog.csdn.net/article/details/43154645 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月19日 07时34分46秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
opencv相关操作(cv2) (python)
2019-04-30
lmdb数据库的读取与转换(二) —— 数据集操作
2019-04-30
Lua语言
2019-04-30
Python __doc__获得模块的文档字符串内容
2019-04-30
Python sys.path和模块搜索路径
2019-04-30
github.io网页无法打开(连接不是私密连接)
2019-04-30
git submodule
2019-04-30
linux中source、sh、bash、./有什么区别
2019-04-30
vscode git
2019-04-30
基于MATLAB的二进制数字调制与解调信号的仿真——2FSK
2019-04-30
基于MATLAB的二进制数字调制与解调信号的仿真——2PSK
2019-04-30
基于MATLAB的模拟调制信号与解调的仿真——AM
2019-04-30
基于MATLAB的模拟调制信号与解调的仿真——DSB
2019-04-30
基于MATLAB的模拟调制信号与解调的仿真——SSB
2019-04-30
pyc文件
2019-04-30
操作系统实验之生产者和消费者程序
2019-04-30
操作系统实验之猴子过桥问题的模拟程序
2019-04-30
POJ - 3067 Japan (树状数组 思维)
2019-04-30