calculate runtime
add debugger