I need some kind of way to sync timestamp between server and client.
In a perfect world I'd have elapsedTime synced between Client and Server, but that's not the case, so I need some other workaround.
What I would want is to store event timestamp which is synced between Client and Server, but with higher priority for predicted value.
So if Client predicted event correctly - it stores current timestamp.
Unless it's a misprediction server will not correct that timestamp (because predicted timestamp might happen during partial tick and be more precise).
At the same time if Client didn't predict event at all, but server did - Client should get timestamp which can be translated to Client's local time.
I believe I can achieve that via NetworkTime singleton somehow, but I can't wrap my head around it.
Any suggestions how that could be done?