Improve time precision and add compatible option
Improve time precision