MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / sched_tick

Function sched_tick

core/schedule.c:323–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323uint64_t sched_tick(enum sched_item_id id) {
324 struct sched_item *item = &sched.items[id];
325 assert(sched_active(id));
326 /* Timestamp is always a multiple of the tick unit, so floor division is sufficient */
327 return div_floor(item->timestamp, &sched.clocks[item->clock]);
328}
329
330uint64_t sched_ticks_remaining(enum sched_item_id id) {
331 struct sched_item *item = &sched.items[id];

Callers

nothing calls this directly

Calls 2

sched_activeFunction · 0.85
div_floorFunction · 0.85

Tested by

no test coverage detected