I am using the following snippet to hit an API and get its response. I want to know how much time it took to fetch the data
const fetch_table_data = async () => { const response = await axios.get(`URL_HERE`, {headers : {'Authorization': 'Token abc'}});if (response.status === 200){
// what is the time taken to fetch this data??? <-------------------
}}
fetch_table_data()
Please suggest a workaround. Thanks