Time Source Delegate on Server?

Options
David
edited July 2013 in Photon Server
Hi,

On the client I can use SupportClass.IntegerMillisecondsDelegate to specify an alternative time source. Can I do the same thing on the server or is it always Environment.TickCount?

Background: We are using 64bit timestamps based on DateTime.UtcNow internally. 32 bit will overflow at some point and cause all kinds of problems for us.
We still want to use Photon to sync time between client and server. Problem is, however, that even on the server DateTime.UtcNow and Environment.TickCount will drift apart after some time. (It is noticible after a few minutes, in fact.) Expecting two different clocks to stay in sync even on the same machine is obviously a bad idea.
Therefore it would be helpful if we could just replace Environment.TickCount with DateTime.UtcNow for all purposes. We would still have to clamp to 32 for Photon, but at least the speed would be the same.

David

Comments

  • Hello David,

    server time is always based on Environment.TickCount. There is no way to specify an alternative time source. Sorry!