用clock就到毫秒了. 它是直接返回毫秒.
#include
#include
#include
int main()
{
clock_t start, finish;
double elapsed_time;
start=clock();
finish=clock();
elapsed_time = finish-start;
}