[utils] add Timer class

fixes #22.