04.09.2009, 17:36
It won't work
You recreate olddata variable every time the function is called hence the speed actually can not be saved and then calculated.
You recreate olddata variable every time the function is called hence the speed actually can not be saved and then calculated.