added remain time api.
Merge remote-tracking branch 'origin/master'