Lines Matching refs:loops
357 static void speed_output(const struct shell *sh, uint64_t total_time, double loops, double size) in speed_output() argument
359 double time_per_loop = (double)total_time / loops; in speed_output()
387 uint32_t loops = 0; in cmd_read_test() local
409 ++loops; in cmd_read_test()
411 shell_print(sh, "Loop #%u done in %llums.", loops, loop_time); in cmd_read_test()
415 speed_output(sh, total_time, (double)loops, (double)size); in cmd_read_test()
431 uint32_t loops = 0; in cmd_write_test() local
457 ++loops; in cmd_write_test()
459 shell_print(sh, "Loop #%u done in %llu ticks.", loops, loop_time); in cmd_write_test()
463 speed_output(sh, total_time, (double)loops, (double)size); in cmd_write_test()
479 uint32_t loops = 0; in cmd_erase_test() local
505 ++loops; in cmd_erase_test()
507 shell_print(sh, "Loop #%u done in %llums.", loops, loop_time); in cmd_erase_test()
511 speed_output(sh, total_time, (double)loops, (double)size); in cmd_erase_test()
528 uint32_t loops = 0; in cmd_erase_write_test() local
560 ++loops; in cmd_erase_write_test()
562 shell_print(sh, "Loop #%u done in %llums.", loops, loop_time); in cmd_erase_write_test()
566 speed_output(sh, total_time, (double)loops, (double)size); in cmd_erase_write_test()