Lines Matching refs:duration
124 static void print_duration(unsigned long duration) in print_duration() argument
129 if (duration > 1000000) in print_duration()
130 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration()
131 ((unsigned int) duration%1000000)); in print_duration()
132 else if (duration > 100000) in print_duration()
133 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
134 else if (duration > 1000) in print_duration()
135 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
136 ((unsigned int) duration%1000)); in print_duration()
138 printf("%lu ns", duration); in print_duration()
140 if (duration > 1000000) { in print_duration()
141 tmp = duration%10000; in print_duration()
143 duration += 10000; in print_duration()
144 printf("%u.%02u ms", ((unsigned int) duration/1000000), in print_duration()
145 ((unsigned int) (duration%1000000)/10000)); in print_duration()
146 } else if (duration > 100000) { in print_duration()
147 tmp = duration%1000; in print_duration()
149 duration += 1000; in print_duration()
150 printf("%u us", ((unsigned int) duration / 1000)); in print_duration()
151 } else if (duration > 1000) { in print_duration()
152 tmp = duration%100; in print_duration()
154 duration += 100; in print_duration()
155 printf("%u.%01u us", ((unsigned int) duration/1000), in print_duration()
156 ((unsigned int) (duration%1000)/100)); in print_duration()
158 printf("%lu ns", duration); in print_duration()