Canvas object now provides fps

canvas object now calculates and updates fps at every call of paint and the fps can be obtained at canvas.fps