Timing

There are two main values used to keep track of the current time. onlinePlay.localTime counts the amount of time in seconds since the level started. This value is specific to the user running the game; as such, it would not make sense to send this to other users.

onlinePlay.syncedTime is similar to the local time, but it is synced between players and thusly can be used as a timestamp between players. Note that this value may actually decrease in some situations, so you cannot rely on it always counting upwards.

Note that neither of these serve to replace the lunatime class. Rather, they act as another way of timing things in the case that the real time in seconds is important.