Track time to get response to API call with Matomo


I’m having web application written with AngularJS and I would like to track API calls and see the time that is spent to get response to REST call. I have tried to find to way to do that but doesn’t have any luck yet. Is it possible to do this kind of things with Matomo?