Current System Time (In Milliseconds)
Please don't kill me if this is blindingly obvious, but I'm about to go crazy, after searching for absolutely ages on the Internet.
I want to get the current system time and write it to a file as a string. The problem is that time() seems to be rounded to the closest second, and that's not specific enough for my needs, I really need milliseconds too.
Can anyone help? I'm really stuck. This is all I have:
Code:
time_t rawtime; // Setup variable
time(&rawtime); // Get time
printf("%d", rawtime); // Test output