History

timer: remove unused code

Kacper Michajłow committed 3 years ago

Commit 71e888c1 parent 751790c3 files · +0 −53Browse files

Showing the changes to test/timer.c (1 of 3 files). Show all

Unified · Split

test/timer.c+0−16
@@ -1,7 +1,6 @@
11 #include "common/common.h"
22 #include "osdep/timer.h"
33 #include "test_utils.h"
4−#include "config.h"
54
65 #include <time.h>
76 #include <sys/time.h>
@@ -38,20 +37,5 @@ int main(void) · 30 unmodified lines
3837 assert_int_equal(mp_time_ns_add(test2, 20.44), INT64_MAX);
3938 }
4039
41−#if !HAVE_WIN32_THREADS
42− /* conversion */
43− {
44− struct timeval tv;
45− struct timespec ts;
46− gettimeofday(&tv, NULL);
47− ts = mp_time_ns_to_realtime(mp_time_ns());
48− assert_true(llabs(tv.tv_sec - ts.tv_sec) <= 1);
49−
50− gettimeofday(&tv, NULL);
51− ts = mp_rel_time_to_timespec(0.0);
52− assert_true(llabs(tv.tv_sec - ts.tv_sec) <= 1);
53− }
54−#endif
55−
5640 return 0;
5741 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t