📄 vm_time_win32.c
字号:
/*//// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright(c) 2003-2005 Intel Corporation. All Rights Reserved.//*/#include "vm_time.h"#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)/* yield the execution of current thread for msec miliseconds */void vm_time_sleep(unsigned int msec){ Sleep(msec);} /* void vm_time_sleep(unsigned int msec) *//* obtain the clock tick of an uninterrupted master clock */vm_tick vm_time_get_tick(void){ LARGE_INTEGER t1; QueryPerformanceCounter(&t1); return t1.QuadPart;} /* vm_tick vm_time_get_tick(void) *//* obtain the clock resolution */vm_tick vm_time_get_frequency(void){ LARGE_INTEGER t1; QueryPerformanceFrequency(&t1); return t1.QuadPart;} /* vm_tick vm_time_get_frequency(void) */#endif /* defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -