fixed calculation method of "cv::TickMeter".

I fixed calculation method of "cv::TickMeter" for 2.4 branch.
(I posted https://github.com/Itseez/opencv/pull/2814 for master branch)