Refactor|libcommon: Switched p_tick.c to C++