add total time statistics
add memory check
update
add detect.py