# Getting timingPhases within Postman Test

**URL:** <https://community.postman.com/t/getting-timingphases-within-postman-test/28021>\
**Category:** Help Hub\
**Created:** [September 21, 2021, 2:27pm UTC](https://community.postman.com/t/getting-timingphases-within-postman-test/28021 "2021-09-21T14:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigomatix](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sigomatix/32/9825_2.png) [@sigomatix](https://community.postman.com/u/sigomatix)\
**Post date:** [September 21, 2021, 2:27pm UTC](https://community.postman.com/t/getting-timingphases-within-postman-test/28021/1 "2021-09-21T14:27:59Z")

</div>

_My question_:  
Hi, I’d like to get timingPhases from a response inside a Postman test

_Details (like screenshots)_:  
According to [Response - Postman Documentation](http://www.postmanlabs.com/postman-collection/Response.html)  
We should be able to get timing information, but when I try to access this object from the response it’s always undefined.

_I’ve already tried_:

These won’t work:

pm.sendRequest(‘[https://postman-echo.com/get](https://postman-echo.com/get)’ , function (err, response) {  
console.log(pm.response.timings);  
console.log(pm.response.timingPhases);  
});  
Based on [https://github.com/postmanlabs/postman-reques](https://github.com/postmanlabs/postman-reques) we should be able to enable timing like this, but it doesn’t work…so maybe Postman UI doesn’t expose the same request interface ?  
pm.sendRequest({url:‘[https://postman-echo.com/get](https://postman-echo.com/get)’, time:true } , function (err, response) {  
console.log(pm.response.timings);  
console.log(pm.response.timingPhases);  
});
