|
Re: Time in Milliseconds
If you want something simple and fast, use the standard C library's ctime (also known as time.h).
the function clock() returns the amount of ticks that have passed since your program started running as a clock_t value. The amount of ticks per second is defined in the macro CLOCKS_PER_SEC. Using this and some simple dimensional analysis, you can easily get how many miliseconds have passed between two clock() calls.
__________________
|