Add the sendTime function to the .js file
add_sendtime2js(js_file, txt_file)
js_file
Path to the .js file to add code
txt_file
Path to the file to record the execution times