Add Timer class unifying CPU and GPU timer and use it in net_speed_benchmark

This resolves the concern about timing CUDA codes in the discussions of #128.

http://devblogs.nvidia.com/parallelforall/how-implement-performance-metrics-cuda-cc/
http://docs.nvidia.com/cuda/cuda-c-best-practices-guide/#performance-metrics