16 #include <my_global.h>
17 #include <my_pthread.h>
62 diag(
"cycle a: %13llu", t1_a);
63 diag(
"nano a: %13llu", t2_a);
64 diag(
"micro a: %13llu", t3_a);
65 diag(
"milli a: %13llu", t4_a);
66 diag(
"tick a: %13llu", t5_a);
68 diag(
"cycle b: %13llu", t1_b);
69 diag(
"nano b: %13llu", t2_b);
70 diag(
"micro b: %13llu", t3_b);
71 diag(
"milli b: %13llu", t4_b);
72 diag(
"tick b: %13llu", t5_b);
74 diag(
"cycle b-a: %13llu", t1_b-t1_a);
75 diag(
"nano b-a: %13llu", t2_b-t2_a);
76 diag(
"micro b-a: %13llu", t3_b-t3_a);
77 diag(
"milli b-a: %13llu", t4_b-t4_a);
78 diag(
"tick b-a: %13llu", t5_b-t5_a);
80 if ((t1_a == 0) && (t1_b == 0))
81 skip(1,
"cycle timer not implemented");
83 ok(t1_b > t1_a,
"cycle timer ascending");
85 if ((t2_a == 0) && (t2_b == 0))
86 skip(1,
"nano timer not implemented");
88 ok(t2_b > t2_a,
"nano timer ascending");
90 if ((t3_a == 0) && (t3_b == 0))
91 skip(1,
"micro timer not implemented");
93 ok(t3_b > t3_a,
"micro timer ascending");
95 if ((t4_a == 0) && (t4_b == 0))
96 skip(1,
"milli timer not implemented");
98 ok(t4_b > t4_a,
"milli timer ascending");
100 if ((t5_a == 0) && (t5_b == 0))
101 skip(1,
"tick timer not implemented");
103 ok(t5_b > t5_a,
"tick timer ascending");
115 int main(
int,
char **)
118 MY_INIT(
"pfs_timer-t");