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:
A = Timer B = Timer TimeSec = (B - A) / 1000
How would I do this in C++? I am thinking:
I know GetTime() is probably wrong but is there anything else wrong? IM ON MY 2ND DAY OF C++ PROGRAMMING.Code:long int a, b, c; a == gettime(); // stuff b == gettime(); c == (b - a) / 1000;




Reply With Quote