increase resolution of time factor output
[libftdi] / examples / baud_test.c
index fd4959f..654bc78 100644 (file)
@@ -5,7 +5,7 @@
  * options:
  *  -p <usb-product-id> (vendor is fixed to ftdi / 0x0403)
  *  -d <datasize to send in bytes>
- *  -b <baudrate> (multiplies by 16 if bitbang as written in the ftdi datasheets)
+ *  -b <baudrate> (divides by 16 if bitbang as taken from the ftdi datasheets)
  *  -m <mode to use> r: serial a: async bitbang s:sync bitbang 
  *
  * (C) 2009 by Gerd v. Egidy <gerd.von.egidy@intra2net.com>
@@ -172,7 +172,7 @@ int main(int argc, char **argv)
     }
 
     duration=get_prec_time()-start;
-    printf("and took %.4f seconds, this is factor %.2f\n",duration,plan/duration);
+    printf("and took %.4f seconds, this is factor %.3f\n",duration,plan/duration);
 
     ftdi_usb_close(&ftdic);
     ftdi_deinit(&ftdic);