You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you have to access a private field self.module_api._clock.time_msec() to get the current time when writing a Synapse module. Since accessing underscore private fields is frowned upon, we should have an official pattern for this.
Workaround
I suppose the workaround here is to use the time library but it seems a bit sketchy to use a different time than what Synapse is using (flawed comparisons).
importtimenow_ts=int(time.time() *1000))
The text was updated successfully, but these errors were encountered:
Currently, you have to access a private field
self.module_api._clock.time_msec()
to get the current time when writing a Synapse module. Since accessing underscore private fields is frowned upon, we should have an official pattern for this.Workaround
I suppose the workaround here is to use the
time
library but it seems a bit sketchy to use a different time than what Synapse is using (flawed comparisons).The text was updated successfully, but these errors were encountered: