時間計測 ref: http://qiita.com/okuhiiro/items/193db661ba005516f104