MCPcopy Create free account
hub / github.com/ElementsProject/elements / TimeDurationField

Function TimeDurationField

src/qt/rpcconsole.h:178–181  ·  view source on GitHub ↗

Helper for the output of a time duration field. Inputs are UNIX epoch times. */

Source from the content-addressed store, hash-verified

176
177 /** Helper for the output of a time duration field. Inputs are UNIX epoch times. */
178 QString TimeDurationField(std::chrono::seconds time_now, std::chrono::seconds time_at_event) const
179 {
180 return time_at_event.count() ? GUIUtil::formatDurationStr(time_now - time_at_event) : tr("Never");
181 }
182
183private Q_SLOTS:
184 void updateAlerts(const QString& warnings);

Callers 1

updateDetailWidgetMethod · 0.85

Calls 2

formatDurationStrFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected