Tag: 过去了

如何以毫秒为单位获得以C为单位的时间? (视窗)

我在网上搜索过但我只找到了一种方法,但这样它就会以秒为单位而不是几毫秒。 我的代码是: #include #include #include int main(void) { int solucion; time_t start, stop; clock_t ticks; long count; time(&start); solucion = divisores_it(92000000, 2); time(&stop); printf(“Finnished in %f seconds. \n”, difftime(stop, start)); return 0; }