Revert "use integer to store time (in ms) instead of float"

This reverts commit 7f1d7db7a6c22853e21b9378725b0c690a7a1efa.