change the time value with local time

This is to avoid time gaps between client and the server
added perception count methods