| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 862 人关注过本帖
标题:[求助]在VC中模拟时钟
只看楼主 加入收藏
wangyinling
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-9-3
收藏
 问题点数:0 回复次数:4 
[求助]在VC中模拟时钟
在VC中模拟时钟
搜索更多相关主题的帖子: 时钟 VC 模拟 
2007-09-04 16:24
wangyinling
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-9-3
收藏
得分:0 

请各位帮帮忙啊,小女子不胜感激

2007-09-05 10:42
dragonfly
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:1024
专家分:0
注 册:2006-3-20
收藏
得分:0 

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.

Remarks
The only difference between this function and the timeGetSystemTime function is that timeGetSystemTime uses the MMTIME structure to return the system time. The timeGetTime function has less overhead than timeGetSystemTime.

Note that the value returned by the timeGetTime function is a DWORD value. The return value wraps around to 0 every 2^32 milliseconds, which is about 49.71 days.This can cause problems in code that directly uses the timeGetTime return value in computations, particularly where the value is used to control code execution. You should always use the difference between two timeGetTime return values in computations.

Windows NT: The default precision of the timeGetTime function can be five milliseconds or more, depending on the machine. You can use the timeBeginPeriod and timeEndPeriod functions to increase the precision of timeGetTime. If you do so, the minimum difference between successive values returned by timeGetTime can be as large as the minimum period value set using timeBeginPeriod and timeEndPeriod. Use the QueryPerformanceCounter and QueryPerformanceFrequency functions to measure short time intervals at a high resolution,

Windows 95: The default precision of the timeGetTime function is 1 millisecond. In other words, the timeGetTime function can return successive values that differ by just 1 millisecond. This is true no matter what calls have been made to the timeBeginPeriod and timeEndPeriod functions.

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.


2007-09-06 08:55
wangyinling
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-9-3
收藏
得分:0 

都是英语啊
谢谢了

2007-09-06 09:38
红专三少
Rank: 1
等 级:新手上路
帖 子:58
专家分:0
注 册:2007-7-14
收藏
得分:0 

我在vc技术大全上有一个时钟的绘制程序,你去找找看!

2007-09-06 11:49
快速回复:[求助]在VC中模拟时钟
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017874 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved