Added timer for cuda.
Using cuda timer.