Log check run time in debug mode

Fix #938