diff --git a/test/c/test.c b/test/c/test.c index 6d82c8fa..ffa2711d 100644 --- a/test/c/test.c +++ b/test/c/test.c @@ -14,14 +14,14 @@ void foo() { DFTRACER_C_FUNCTION_START(); DFTRACER_C_FUNCTION_UPDATE_INT("key", 0); DFTRACER_C_FUNCTION_UPDATE_STR("key", "0"); - sleep(1); + usleep(1000); DFTRACER_C_REGION_START(CUSTOM); DFTRACER_C_REGION_UPDATE_INT(CUSTOM, "key", 0); DFTRACER_C_REGION_UPDATE_STR(CUSTOM, "key", "0"); bar(); - sleep(1); + usleep(1000); DFTRACER_C_REGION_START(CUSTOM_BLOCK); - sleep(1); + usleep(1000); DFTRACER_C_REGION_END(CUSTOM_BLOCK); DFTRACER_C_REGION_END(CUSTOM); DFTRACER_C_FUNCTION_END(); diff --git a/test/cpp/test.cpp b/test/cpp/test.cpp index d3eb5349..7ae752b3 100644 --- a/test/cpp/test.cpp +++ b/test/cpp/test.cpp @@ -18,15 +18,15 @@ void foo() { DFTRACER_CPP_FUNCTION_UPDATE("key", 0); DFTRACER_CPP_FUNCTION_UPDATE("key", "0"); - sleep(1); + usleep(1000); { DFTRACER_CPP_REGION(CUSTOM); DFTRACER_CPP_REGION_UPDATE(CUSTOM, "key", "0"); - sleep(1); + usleep(1000); DFTRACER_CPP_REGION_START(CUSTOM_BLOCK); DFTRACER_CPP_REGION_UPDATE(CUSTOM, "key", 0); DFTRACER_CPP_REGION_DYN_UPDATE(CUSTOM_BLOCK, "key", 0); - sleep(1); + usleep(1000); DFTRACER_CPP_REGION_END(CUSTOM_BLOCK); } } diff --git a/test/py/test.py b/test/py/test.py index 3932b05c..0ea9e1f2 100644 --- a/test/py/test.py +++ b/test/py/test.py @@ -30,18 +30,18 @@ @dft_fn.log def log_events(index): - sleep(1) + sleep(0.001) def custom_events(): log_inst.enter_event() start = log_inst.get_time() - sleep(1) + sleep(0.001) end = log_inst.get_time() log_inst.log_event("test", "cat2", start, end - start) log_inst.exit_event() for i in dft_fn.iter(range(2)): - sleep(1) + sleep(0.001) def posix_calls(val):