Whats the best way to get the current time in milliseconds for C? Time.h seems to have only stuff for hours:minutes:seconds.

I ask because I am trying to emulate a CPU which is significantly slower than the host CPU. I have to calculate cycles in MHz and slow it down to its correct speed. I figure I can get it as accurate to a millisecond, because seconds obviously wouldn't be too accurate at all. Thanks.