void Update() { TimePoint now = std::chrono::system_clock::now(); std::chrono::duration<float> delta = now - m_clock; UpdateListeners(delta.count()); m_clock = now; }
void UserPresenceManagerLeaderImpl::PushPresenceUpdate() { // Tell any connected baraboo about the new mute state. if (m_barabooConnection->IsConnected()) { NetworkOutMessagePtr message = m_barabooConnection->CreateMessage(MessageID::UserPresenceChange); message->Write(m_localUser ? m_localUser->GetName() : NULL); message->Write(int32((m_localUser && m_localUser->GetMuteState()) ? 1 : 0)); m_barabooConnection->Send(message); } UpdateListeners(); }