[c] How to measure time in milliseconds using ANSI C?