[riot-notifications] [RIOT-OS/RIOT] pkg: Initial introduction of ubasic package (#11319)

Martine Lenders notifications at github.com
Tue Apr 2 23:09:54 CEST 2019


miri64 commented on this pull request.



> +
+  clock_t start_t, end_t;
+  double delta_t;
+
+  start_t = clock();
+
+  ubasic_init_peek_poke(program, &peek, &poke);
+
+  do {
+    ubasic_run();
+  } while(!ubasic_finished());
+
+  end_t = clock();
+  delta_t = (double)(end_t - start_t) / CLOCKS_PER_SEC;
+
+  printf("done. Run time: %.3f s\n", delta_t);

My preferred solution (but this did not work at least with the 10 min I was willing to spend on this joke project) was to just copy `tests.c` from the package BTW, since the package is pulled in *after* the application directory is compiled.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11319#discussion_r271497042
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190402/7587a2b7/attachment.html>


More information about the notifications mailing list