Lines Matching full:duration
87 static void print_duration(unsigned long duration) in print_duration() argument
92 if (duration > 1000000) in print_duration()
93 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration()
94 ((unsigned int) duration%1000000)); in print_duration()
95 else if (duration > 100000) in print_duration()
96 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
97 else if (duration > 1000) in print_duration()
98 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
99 ((unsigned int) duration%1000)); in print_duration()
101 printf("%lu ns", duration); in print_duration()
103 if (duration > 1000000) { in print_duration()
104 tmp = duration%10000; in print_duration()
106 duration += 10000; in print_duration()
107 printf("%u.%02u ms", ((unsigned int) duration/1000000), in print_duration()
108 ((unsigned int) (duration%1000000)/10000)); in print_duration()
109 } else if (duration > 100000) { in print_duration()
110 tmp = duration%1000; in print_duration()
112 duration += 1000; in print_duration()
113 printf("%u us", ((unsigned int) duration / 1000)); in print_duration()
114 } else if (duration > 1000) { in print_duration()
115 tmp = duration%100; in print_duration()
117 duration += 100; in print_duration()
118 printf("%u.%01u us", ((unsigned int) duration/1000), in print_duration()
119 ((unsigned int) (duration%1000)/100)); in print_duration()
121 printf("%lu ns", duration); in print_duration()