I want something like this:
//includes
main()
{
//variable declarations
//<record start here>
//function to time
//<record date here>
//<find the difference>
//print total time accurately, at least in milliseconds.
}
I have no idea how to do the parts in bold. I tried gettimeofday(), but then I remembered that it only works under *nix, and I need this to compile and run under Windows. How do I do it?