fix getTimestamp function returns wrong value.

Signed-off-by: Keisuke Nakao <chome@argv.org>