文件名称:mytime
- 所属分类:
- 进程与线程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2014-04-05
- 文件大小:
- 23.92mb
- 下载次数:
- 0次
- 提 供 者:
- fr***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计并实现Unix的“time”命令。“mytime”命令通过命令行参数接受要运行的程序,创建一个独立的进程来运行该程序,并记录程序运行的时间。
使用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. Use CreateProcess () to create a process using WaitForSingleObject () between " mytime" command and the newly created process synchronous call GetSystemTime () to get the time
使用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. Use CreateProcess () to create a process using WaitForSingleObject () between " mytime" command and the newly created process synchronous call GetSystemTime () to get the time
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mytime\Debug\mytime.exe
......\.....\mytime.ilk
......\.....\mytime.pdb
......\.....\program1.exe
......\.....\wintest1.exe
......\.....\wintest2.exe
......\ipch\mytime-399ef12b\mytime-317be621.ipch
......\....\...............\mytime-4d116adb.ipch
......\mytime\Debug\CL.read.1.tlog
......\......\.....\CL.write.1.tlog
......\......\.....\link-cvtres.read.1.tlog
......\......\.....\link-cvtres.write.1.tlog
......\......\.....\link-rc.read.1.tlog
......\......\.....\link-rc.write.1.tlog
......\......\.....\link.4504-cvtres.read.1.tlog
......\......\.....\link.4504-cvtres.write.1.tlog
......\......\.....\link.4504-rc.read.1.tlog
......\......\.....\link.4504-rc.write.1.tlog
......\......\.....\link.4504.read.1.tlog
......\......\.....\link.4504.write.1.tlog
......\......\.....\link.read.1.tlog
......\......\.....\link.write.1.tlog
......\......\.....\mytime.lastbuildstate
......\......\.....\mytime.log
......\......\.....\mytime.obj
......\......\.....\mytime.pch
......\......\.....\stdafx.obj
......\......\.....\vc110.idb
......\......\.....\vc110.pdb
......\......\mytime.cpp
......\......\mytime.vcxproj
......\......\mytime.vcxproj.filters
......\......\mytime.vcxproj.user
......\......\ReadMe.txt
......\......\..lease\CL.read.1.tlog
......\......\.......\CL.write.1.tlog
......\......\.......\mytime.lastbuildstate
......\......\.......\mytime.log
......\......\.......\mytime.pch
......\......\.......\mytime.unsuccessfulbuild
......\......\.......\stdafx.obj
......\......\.......\vc110.pdb
......\......\stdafx.cpp
......\......\stdafx.h
......\......\targetver.h
......\mytime.sdf
......\mytime.sln
......\mytime.v11.suo
program1\Debug\program1.exe
........\.....\program1.ilk
........\.....\program1.pdb
........\program1\Debug\CL.read.1.tlog
........\........\.....\CL.write.1.tlog
........\........\.....\link-cvtres.read.1.tlog
........\........\.....\link-cvtres.write.1.tlog
........\........\.....\link-rc.read.1.tlog
........\........\.....\link-rc.write.1.tlog
........\........\.....\link.read.1.tlog
........\........\.....\link.write.1.tlog
........\........\.....\program1.lastbuildstate
........\........\.....\program1.log
........\........\.....\program1.obj
........\........\.....\stdafx.obj
........\........\.....\vc110.idb
........\........\.....\vc110.pdb
........\........\program1.cpp
........\........\program1.vcxproj
........\........\program1.vcxproj.filters
........\........\ReadMe.txt
........\........\stdafx.cpp
........\........\stdafx.h
........\........\targetver.h
........\program1.sdf
........\program1.sln
........\program1.v11.suo
mytime\ipch\mytime-399ef12b
......\mytime\Debug
......\......\Release
program1\program1\Debug
mytime\Debug
......\ipch
......\mytime
......\Release
program1\Debug
........\program1
mytime
program1