文件名称:test
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-04-13
- 文件大小:
- 3.23mb
- 下载次数:
- 0次
- 提 供 者:
- 孙**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。
在Windows下实现:
使用CreateProcess()来创建进程
使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步
调用GetSystemTime()来获取时间
-Design and implementation of Unix " time" command. " Mytime" command from the command line arguments accepted to run the program, create a separate process to run the program, and record the program running time. In the Windows implementation: use CreateProcess () to create a process using WaitForSingleObject () between " mytime" command and the newly created process synchronous call GetSystemTime () to get the time
在Windows下实现:
使用CreateProcess()来创建进程
使用WaitForSingleObject()在“mytime”命令和新创建的进程之间同步
调用GetSystemTime()来获取时间
-Design and implementation of Unix " time" command. " Mytime" command from the command line arguments accepted to run the program, create a separate process to run the program, and record the program running time. In the Windows implementation: use CreateProcess () to create a process using WaitForSingleObject () between " mytime" command and the newly created process synchronous call GetSystemTime () to get the time
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test
....\Mytime
....\Mytimec
....\.......\Debug
....\.......\.....\Mytimec.exe
....\.......\.....\Mytimec.ilk
....\.......\.....\Mytimec.obj
....\.......\.....\Mytimec.pch
....\.......\.....\Mytimec.pdb
....\.......\.....\vc60.idb
....\.......\.....\vc60.pdb
....\.......\Mytimec.cpp
....\.......\Mytimec.dsp
....\.......\Mytimec.dsw
....\.......\Mytimec.ncb
....\.......\Mytimec.opt
....\.......\Mytimec.plg
....\......\Debug
....\......\.....\Mytime.exe
....\......\.....\Mytime.ilk
....\......\.....\Mytime.obj
....\......\.....\Mytime.pch
....\......\.....\Mytime.pdb
....\......\.....\vc60.idb
....\......\.....\vc60.pdb
....\......\Mytime.cpp
....\......\Mytime.dsp
....\......\Mytime.dsw
....\......\Mytime.ncb
....\......\Mytime.opt
....\......\Mytime.plg