[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[日期时间] 求助批处理解析TXT文本里的时间并计算成分钟数

本帖最后由 smtcao008 于 2023-11-1 17:03 编辑

如下是3DMARK产生的3D.txt,想实现监控其跑的时间长短,理论是第一行时间和末尾行时间相减得出分钟数,这种批处理能实现吗?
13:47:34 Logging to file C:\3DMark_Logs\3DMarkLoop_01-11-2023_1347_27.log
13:47:34   _____ ____  __  __            _   
13:47:34  |___ /|  _ \|  \/  | __ _ _ __| | __
13:47:34    |_ \| | | | |\/| |/ _` | '__| |/ /
13:47:34   ___) | |_| | |  | | (_| | |  |   <
13:47:34  |____/|____/|_|  |_|\__,_|_|  |_|\_\
13:47:34 3DMark Command Line Client version: 2.6.6174 64
13:47:34 Futuremark Systeminfo version: 5.30.850.0
13:47:35 Starting benchmark. Loop 1 of inf
13:47:35 Running benchmark, system scan not included, and monitoring not included
13:47:35 Begin workload set Cloud Gate Graphics Test 1 Custom
13:48:14 End workload set Cloud Gate Graphics Test 1 Custom
13:48:14 Begin workload set Cloud Gate Graphics Test 2 Custom
13:48:56 End workload set Cloud Gate Graphics Test 2 Custom
13:48:56 Begin workload set Cloud Gate Physics Test Custom
13:49:23 End workload set Cloud Gate Physics Test Custom
13:49:23 Benchmark completed.
13:49:24 Starting benchmark. Loop 2 of inf
13:49:24 Running benchmark, system scan not included, and monitoring not included
13:49:24 Begin workload set Cloud Gate Graphics Test 1 Custom
13:50:02 End workload set Cloud Gate Graphics Test 1 Custom
13:50:02 Begin workload set Cloud Gate Graphics Test 2 Custom
13:50:45 End workload set Cloud Gate Graphics Test 2 Custom
13:50:45 Begin workload set Cloud Gate Physics Test Custom
13:51:13 End workload set Cloud Gate Physics Test Custom
13:51:13 Benchmark completed.
13:51:13 Starting benchmark. Loop 3 of inf
13:51:13 Running benchmark, system scan not included, and monitoring not included
13:51:13 Begin workload set Cloud Gate Graphics Test 1 Custom
13:51:51 End workload set Cloud Gate Graphics Test 1 Custom
13:51:51 Begin workload set Cloud Gate Graphics Test 2 Custom
13:52:34 End workload set Cloud Gate Graphics Test 2 Custom
13:52:34 Begin workload set Cloud Gate Physics Test Custom
13:53:01 End workload set Cloud Gate Physics Test Custom
13:53:01 Benchmark completed.
13:53:01 Starting benchmark. Loop 4 of inf
13:53:01 Running benchmark, system scan not included, and monitoring not included
13:53:01 Begin workload set Cloud Gate Graphics Test 1 Custom
13:53:40 End workload set Cloud Gate Graphics Test 1 Custom
13:53:40 Begin workload set Cloud Gate Graphics Test 2 Custom
13:54:23 End workload set Cloud Gate Graphics Test 2 Custom
13:54:23 Begin workload set Cloud Gate Physics Test Custom
13:54:50 End workload set Cloud Gate Physics Test Custom
13:54:50 Benchmark completed.
13:54:50 Starting benchmark. Loop 5 of inf
13:54:50 Running benchmark, system scan not included, and monitoring not included
13:54:50 Begin workload set Cloud Gate Graphics Test 1 Custom
13:55:28 End workload set Cloud Gate Graphics Test 1 Custom
13:55:28 Begin workload set Cloud Gate Graphics Test 2 Custom
13:56:11 End workload set Cloud Gate Graphics Test 2 Custom
13:56:11 Begin workload set Cloud Gate Physics Test Custom
13:56:38 End workload set Cloud Gate Physics Test Custom
13:56:38 Benchmark completed.

网盘文档已上传
链接:https://pan.baidu.com/s/1hUqCjhlsLnp44ETG_T-tzg
提取码:1234
小Z

回复 2# wanghan519

我临时还使用最简陋的指令抓loop数先管控!~~~
小Z

TOP

回复 3# Batcher


    已更新网盘
小Z

TOP

返回列表