using ansi-c on windows platform can i get time of system upto milliseconds accuracy?
i need to get the millisecond accuracy i take a look on this question but i am working on windows: it gives linking errors for POSIX functions. it will be very good if i can get UTC time since 1970 with milliseconds precision. Not in ANSI C, but the Windows API provides a GetSystemTime function as illustrated here: http://msdn.microsoft.com/en-us/library/ms724950(v=VS.85).aspx Sorry, but you can't do that using neither ANSI C nor the Windows API. You can get the system time with a millisecond resolution using GetSystemTime or with a 100-nanosecond resolution using GetSystemTimeAsFileTime, but