diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 6308348361..2f4c3f75b2 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -348,7 +348,7 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c init_block(block, test, is_idct, &prng, vals); permute(block1, block, dct->format); - ti = av_gettime(); + ti = av_gettime_relative(); it1 = 0; do { for (it = 0; it < NB_ITS_SPEED; it++) { @@ -357,7 +357,7 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c } emms_c(); it1 += NB_ITS_SPEED; - ti1 = av_gettime() - ti; + ti1 = av_gettime_relative() - ti; } while (ti1 < 1000000); printf("%s %s: %0.1f kdct/s\n", is_idct ? "IDCT" : "DCT", dct->name, @@ -508,7 +508,7 @@ static void idct248_error(const char *name, if (!speed) return; - ti = av_gettime(); + ti = av_gettime_relative(); it1 = 0; do { for (it = 0; it < NB_ITS_SPEED; it++) { @@ -518,7 +518,7 @@ static void idct248_error(const char *name, } emms_c(); it1 += NB_ITS_SPEED; - ti1 = av_gettime() - ti; + ti1 = av_gettime_relative() - ti; } while (ti1 < 1000000); printf("%s %s: %0.1f kdct/s\n", 1 ? "IDCT248" : "DCT248", name, diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index a29896fde7..7d8f8e5244 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -438,7 +438,7 @@ int main(int argc, char **argv) /* we measure during about 1 seconds */ nb_its = 1; for(;;) { - time_start = av_gettime(); + time_start = av_gettime_relative(); for (it = 0; it < nb_its; it++) { switch (transform) { case TRANSFORM_MDCT: @@ -464,7 +464,7 @@ int main(int argc, char **argv) #endif } } - duration = av_gettime() - time_start; + duration = av_gettime_relative() - time_start; if (duration >= 1000000) break; nb_its *= 2; diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c index 53cfedbe76..38616012ca 100644 --- a/libavcodec/motion-test.c +++ b/libavcodec/motion-test.c @@ -91,7 +91,7 @@ static void test_motion(const char *name, emms_c(); /* speed test */ - ti = av_gettime(); + ti = av_gettime_relative(); d1 = 0; for(it=0;it