COleDateTime::GetCurrentTime
static COleDateTime PASCAL GetCurrentTime( );ResCall this static member function to return the current date/time value.------------------------------------------------------------------------
CTime::GetCurrentTime
static CTime PASCAL GetCurrentTime( );ResReturns a CTime object that represents the current time.
------------------------------------------------------------------------
timeGetTime
The timeGetTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started.DWORD timeGetTime(VOID);
Parameters
This function does not take parameters.Return Values
Returns the system time, in milliseconds.
static COleDateTime PASCAL GetCurrentTime( );ResCall this static member function to return the current date/time value.------------------------------------------------------------------------
CTime::GetCurrentTime
static CTime PASCAL GetCurrentTime( );ResReturns a CTime object that represents the current time.
------------------------------------------------------------------------
timeGetTime
The timeGetTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started.DWORD timeGetTime(VOID);
Parameters
This function does not take parameters.Return Values
Returns the system time, in milliseconds.
解决方案 »
- 如何试用vc++,实现对共享资源的指定用户或IP授权访问
- 哪儿能下到cximage的类库啊!
- CTreeCtrl删除一个结点后,不会高亮显示下一个结点
- 关于directshow的filter的问题
- 我在VC6下用ATL COM向导生成一个SERVER.EXE的程序,为什么在运行窗口下无法通过/regserver注册上?
- 发现C++的浮点数除法/加法有错误,如何纠正?
- 想在对话框关闭时,调用菜单->关闭的处理函数关闭程序,怎么做?
- 通过Crecordset在ACCESS数据库的表中添加第一条记录出现的问题
- 请问一个有关于smtp协议发送邮件的主题(subject)得问题!谢谢!
- 我的Combobox的下拉列表怎么显示不出来?
- 如何获取桌面名字
- 如何阻止进程中线程运行
timeGetTime 返回的是系统从开机启动后到现在的时间,以ms形式表示.timeGetSystemTime同上,只不过是以MMTIME 结构来表示的.
它们与GetCurrentTime是两个不同的时间.typedef struct mmtime_tag {
UINT wType;
union {
DWORD ms;
DWORD sample;
DWORD cb;
DWORD ticks;
struct {
BYTE hour;
BYTE min;
BYTE sec;
BYTE frame;
BYTE fps;
BYTE dummy;
BYTE pad[2]
} smpte;
struct {
DWORD songptrpos;
} midi;
} u;
} MMTIME;
经历了30秒后的现在时间是:2007_08_27 22:40
那么,这个timeGetTime得到的是不是30秒?