Hi, What's the best way to calculate the current SPI transfer speed?
Right now I use something like that and transfer one spi_message with 1 spi_transfer of 100000 bytes and I do the math... I know that this is not accurate and was wondering if anyone have a better way? struct timeval tv_before; struct timeval tv_after; do_gettimeofday(&tv_before); status = spi_sync(spike_dev.spi_device, &spike_ctl.msg); do_gettimeofday(&tv_after); long elapsedTime = (tv_after.tv_usec - tv_before.tv_usec); Thx -- Kevyn-Alexandre Pare ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general