kasjer commented on a change in pull request #2372:
URL: https://github.com/apache/mynewt-core/pull/2372#discussion_r485177824



##########
File path: apps/crypto_test/src/main.c
##########
@@ -286,7 +288,10 @@ run_benchmark(char *name, block_encrypt_func_t encfn, void 
*data, uint8_t iter)
             }
         }
     }
-    printf("done in %lu ticks\n", os_time_get() - t);
+    e = os_time_get() - t;
+    ret = os_time_ticks_to_ms(e, &ms);
+    assert(ret == 0);
+    printf("done in %lu ticks / %lu ms\n", e, ms);

Review comment:
       When **RISCV** (unlike ARM) gcc compiler is used, **uint32_t** is not 
`unsigned long int` but just `unsigned int`.
   Usage of `"%lu"` will lead to warnings there.
   I would suggest to use **PRIu32** or cast to avoid future warning fixes.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to