mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[glass] Show NT timestamps in seconds (#2944)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user