Is there a platform-independent way to measure time up to micro seconds using C standard library?
The POSIX gettimeofday and clock_gettime functions are the closest thing you'll find to platform-independence. Ideally all platforms would follow POSIX, but one notable infamous one (along with various obscure ones) doesn't.
gettimeofday
clock_gettime