// prepare execution
- uint64_t prepare_ms = NowMicros();
+ uint64_t prepare_us = NowMicros();
NNPR_ENSURE_STATUS(nnfw_prepare(session));
- prepare_ms = NowMicros() - prepare_ms;
+ prepare_us = NowMicros() - prepare_us;
// prepare input
sizeof(float) * output_num_elements));
}
- uint64_t run_ms = NowMicros();
+ uint64_t run_us = NowMicros();
NNPR_ENSURE_STATUS(nnfw_run(session));
- run_ms = NowMicros() - run_ms;
+ run_us = NowMicros() - run_us;
// dump output tensors
if (!args.getDumpFilename().empty())
dumpOutputs(args.getDumpFilename());
- std::cout << "nnfw_prepare takes " << prepare_ms / 1e3 << " sec" << std::endl;
- std::cout << "nnfw_run takes " << run_ms / 1e3 << " sec" << std::endl;
+ std::cout << "nnfw_prepare takes " << prepare_us / 1e3 << " ms" << std::endl;
+ std::cout << "nnfw_run takes " << run_us / 1e3 << " ms" << std::endl;
NNPR_ENSURE_STATUS(nnfw_close_session(session));