I know there is <chrono>
in c++ and std::chrono::high_resolution_clock::now()
can get the exact time of type std::chrono::high_resolution_clock::time_point
. However, I am using raw C language so it is impossible to call this function. The time()
function can only get second level time.
My final target is to measure the running time of a multi-thread program. The clock()
function will sum the clocks of all threads up so it can not be used to measure the running time.