I need to know how can I calculate the time of a function in C code in nanoseconds.
I tried to repeat the function until consume some microseconds. Are there any other functions in time.h
that can be used to calculate the time in nanoseconds?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…