Feature/time topic changes (#863)

* Time topic updates
* Update web gui and patch jsonconverters
This commit is contained in:
Emil Axelsson
2019-05-17 21:55:00 +02:00
committed by GitHub
parent 512e35bea6
commit d6c5c98e6d
4 changed files with 60 additions and 51 deletions
+5 -2
View File
@@ -41,13 +41,16 @@ public:
private:
const int UnsetOnChangeHandle = -1;
nlohmann::json currentTime();
nlohmann::json deltaTime();
void sendCurrentTime();
void sendFullTimeData();
int _timeCallbackHandle = UnsetOnChangeHandle;
int _deltaTimeCallbackHandle = UnsetOnChangeHandle;
bool _isDone = false;
std::chrono::system_clock::time_point _lastUpdateTime;
bool _lastPauseState = false;
double _lastTargetDeltaTime = 0.0;
};
} // namespace openspace