术语 | getsystemtimes |
释义 | GetSystemTimes 语法: C++ BOOL WINAPI GetSystemTimes( __out_opt LPFILETIME lpIdleTime, __out_opt LPFILETIME lpKernelTime, __out_opt LPFILETIME lpUserTime ); GetSystemTimes功能 定时信息检索系统。在多处理器系统,返回值是在指定时间在所有的处理器的总和。 参数 lpIdleTime [指出,可选] 一个 FILETIME结构,它接收的时间,该系统已闲置的指针。 lpKernelTime [指出,可选] 一个 FILETIME结构,它接收的时间,该系统花了在内核模式下执行在所有的处理器(包括所有进程的所有线程,指针)。 lpUserTime [指出,可选] 一个 FILETIME结构,它接收的时间,该系统已花了用户模式上执行所有的处理器(包括所有进程的所有线程,指针)。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0501或更高版本。有关详细信息,请参阅使用Windows头。 要求: 最低支持clientWindows SP1的Vista中,Windows XP的 最低支持serverWindows服务器2003 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 FILETIME 系统时间 时间函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==GetSystemTimes Function Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors. Syntax C++ BOOL WINAPI GetSystemTimes( __out_opt LPFILETIME lpIdleTime, __out_opt LPFILETIME lpKernelTime, __out_opt LPFILETIME lpUserTime ); Parameters lpIdleTime [out, optional] A pointer to a FILETIME structure that receives the amount of time that the system has been idle. lpKernelTime [out, optional] A pointer to a FILETIME structure that receives the amount of time that the system has spent executing in Kernel mode (including all threads in all processes, on all processors). lpUserTime [out, optional] A pointer to a FILETIME structure that receives the amount of time that the system has spent executing in User mode (including all threads in all processes, on all processors). Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers . Requirements Minimum supported clientWindows Vista, Windows XP with SP1 Minimum supported serverWindows Server 2003 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also FILETIME System Time Time Functions Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms724400(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。