And also I'd like to know how to get the current time, I want to find out how long it took to do something (eg, in vb: )

VB Code:
  1. A = Timer
  2. B = Timer
  3. TimeSec = (B - A) / 1000

How would I do this in C++? I am thinking:

Code:
long int a, b, c;
a == gettime();
// stuff
b == gettime();
c == (b - a) / 1000;
I know GetTime() is probably wrong but is there anything else wrong? IM ON MY 2ND DAY OF C++ PROGRAMMING.