It is impossible, a client limitation. MCPE does not have packets indicating how long you have touched the entity, hence there is no way server could know about it.