Decrease CPU usage of datetime by events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-datetime (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Currently in ./src/wakeup-
the g_timeout_add_full function is used to call intervals:
const auto now = m_clock-
const auto difference_usec = g_date_
const guint interval_msec = std::abs(
g_debug("%s setting wakeup timer to kick at %s, which is in %zu seconds",
More information:
https:/
The grouping of timers to fire at the same time results in a more power and CPU efficient behavior
That's why I would recommend to use:
g_timeout_
instead
Changed in indicator-datetime (Ubuntu): | |
assignee: | Charles Kerr (charlesk) → nobody |
Good suggestion! Thanks Bartosz.