This question shows research effort; it is useful and clear
-1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我对 C 很陌生,我有以下代码,我想将时间加倍,我该怎么做?
#include <time.h>
struct timeval t ={1, 10000};
while(1){
//some code to use timeval
Here I need to double the timeval. Meaning if the timeval was 1.1 seconds, I need to make t = 2.2
seconds.
}