Add debugPause(ticks), fix return value.

Signed-off-by: Robert Xu <robxu9@gmail.com>