Search code examples
cvisual-studio-2010gettickcount

Having trouble get GetTickCount() in C


This is part of my code in visual studio 2010. However I'm getting the "IntelliSense: identifier "GetTickCount" is undefined" from the compiler. I do not know how to fix it.

typedef enum {FALSE = 0, TRUE} BOOL;

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

those are the includes I have in the code

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

Solution

  • include widows.h file in header..