Revision: 72300
          http://sourceforge.net/p/brlcad/code/72300
Author:   brlcad
Date:     2019-01-31 21:29:47 +0000 (Thu, 31 Jan 2019)
Log Message:
-----------
let the example show how to print sub-second useful timings

Modified Paths:
--------------
    brlcad/trunk/include/bu/time.h

Modified: brlcad/trunk/include/bu/time.h
===================================================================
--- brlcad/trunk/include/bu/time.h      2019-01-31 21:28:44 UTC (rev 72299)
+++ brlcad/trunk/include/bu/time.h      2019-01-31 21:29:47 UTC (rev 72300)
@@ -47,9 +47,9 @@
 @code
 int64_t start = bu_gettime();
 do_some_work_here();
-int64_t elapsed = bu_gettime() - start;
-int seconds = elapsed / 1000000LL;
-printf("time: %02d\n", seconds);
+double elapsed = bu_gettime() - start;
+double seconds = elapsed / 1000000LL;
+printf("time: %.2f\n", seconds);
 @endcode
  *
  */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to