add compilation time limit function: 5s if  compilation time exceed 5s,compile failed