[glass] Show NT timestamps in seconds (#2944)

This commit is contained in:
Peter Johnson
2020-12-17 07:29:00 -08:00
committed by GitHub
parent 98dfc26208
commit 1051a06a76

View File

@@ -481,7 +481,8 @@ static void EmitEntry(NetworkTablesModel::Entry& entry, const char* name,
if (flags & NetworkTablesFlags_ShowTimestamp) {
if (entry.value)
ImGui::Text("%" PRIu64, entry.value->last_change());
ImGui::Text("%f", (entry.value->last_change() * 1.0e-6) -
(GetZeroTime() * 1.0e-6));
else
ImGui::TextUnformatted("");
ImGui::NextColumn();