c - 在 C 中获取 GetTickCount() 时遇到问题

标签 c visual-studio-2010 gettickcount

这是我在 visual studio 2010 中的代码的一部分。但是我从编译器中得到“IntelliSense:标识符“GetTickCount”未定义”。我不知道如何解决它。

typedef enum {FALSE = 0, TRUE} BOOL;

int main(int argc, char* argv[]){
double current_Time;
current_Time = GetTickCount()/1000.0 - start/1000;
....

这些是我在代码中包含的内容

 #include <stdio.h>
 #include <time.h>
 #include <math.h>
 #include <stdlib.h> 
 #include <conio.h>

最佳答案

在头文件中包含 widows.h 文件..

关于c - 在 C 中获取 GetTickCount() 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23100429/

相关文章:

visual-studio - 在 Visual Studio 中为不同的生成配置使用不同的预生成事件

计算使用特定值调用函数的次数

c - 在 NASM 中打印更大的数字

vb.net - Visual Studio VB 智能缩进和格式文档很疯狂——如何修复或解决方法?

c# - 生成错误 : "The process cannot access the file because it is being used by another process"

c++ - FPS游戏ping实现

c++ - 是否有任何类似于 Windows 上的 GetTickCount() 的 C++ 标准类/函数?

c++ - 使用 strstr() 函数正在破坏

c - C语言中的感叹号是什么意思?