How to get the current server timestamp?
dmarqs
✭
Hi everyone,
In PhotonMessageInfo there is:
- timestamp: which I imagine is the current server timestamp;
- SentServerTimestamp: which I believe is the timestamp the server sent stream;
Is there a way to know what was the server timestamp when the PLAYER was writing the stream through PhotonMessageInfo? Or I need to include it in my PhotonStream? If I had to do it, how is the proper way to get the current server timestamp in player code?
I read someone that I need to fetch, but this timestamp could differ from the actual server timestamp from time to time?
Edit: The reason is that I want to know how long has passed since that player started that interaction so I can keep animations up-to-date to everyone in the room.
In PhotonMessageInfo there is:
- timestamp: which I imagine is the current server timestamp;
- SentServerTimestamp: which I believe is the timestamp the server sent stream;
Is there a way to know what was the server timestamp when the PLAYER was writing the stream through PhotonMessageInfo? Or I need to include it in my PhotonStream? If I had to do it, how is the proper way to get the current server timestamp in player code?
I read someone that I need to fetch, but this timestamp could differ from the actual server timestamp from time to time?
Edit: The reason is that I want to know how long has passed since that player started that interaction so I can keep animations up-to-date to everyone in the room.
0