windows进程控制mttime

上传者: 34528113 | 上传时间: 2019-12-21 18:53:27 | 文件大小: 6.9MB | 文件类型: rar
设计并实现Unix的"time”命令。"mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。 在Windows下实现: 使用CreateProcess()来创建进程 使用WaitForSingleObject()在"mytime”命令和新创建的进程之间同步 调用GetSystemTime()来获取时间 在Linux下实现: 使用fork()/exec()来创建进程运行程序 使用wait()等待新创建的进程结束 调用gettimeofday()来获取时间 mytime的用法: $ mytime.exe program1 $ mytime.exe program2 t t为时间参数 显示结果: **小时**分**秒**毫秒**微秒

文件下载

资源详情

[{"title":"( 26 个子文件 6.9MB ) windows进程控制mttime","children":[{"title":"mytime","children":[{"title":"Debug","children":[{"title":"cl.command.1.tlog <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"mytime.ilk <span style='color:#111;'> 405.50KB </span>","children":null,"spread":false},{"title":"mytime.pdb <span style='color:#111;'> 795.00KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 28.29KB </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"mytime.log <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 628B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 458B </span>","children":null,"spread":false},{"title":"text1.exe <span style='color:#111;'> 30.50KB </span>","children":null,"spread":false},{"title":"vc110.idb <span style='color:#111;'> 691.00KB </span>","children":null,"spread":false},{"title":"mytime.obj <span style='color:#111;'> 251.44KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"vc110.pdb <span style='color:#111;'> 388.00KB </span>","children":null,"spread":false},{"title":"mytime.lastbuildstate <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"link-rc.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mytime.exe <span style='color:#111;'> 80.50KB </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link-rc.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":false},{"title":"mytime.cpp <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"mytime.v11.suo <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"mytime.vcxproj.user <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"mytime.sdf <span style='color:#111;'> 30.81MB </span>","children":null,"spread":false},{"title":"mytime.sln <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"mytime.vcxproj.filters <span style='color:#111;'> 944B </span>","children":null,"spread":false},{"title":"mytime.vcxproj <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明