# Dynatrace USQL query FrontEnd Time , ServerTime, Network Time

**URL:** <https://community.dynatrace.com/t/dynatrace-usql-query-frontend-time-servertime-network-time/31904>\
**Category:** Dynatrace Tips\
**Created:** [June 24, 2021, 5:46am UTC](https://community.dynatrace.com/t/dynatrace-usql-query-frontend-time-servertime-network-time/31904 "2021-06-24T05:46:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahrukh\_niazi](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@shahrukh\_niazi](https://community.dynatrace.com/u/shahrukh_niazi)\
**Post date:** [June 24, 2021, 5:46am UTC](https://community.dynatrace.com/t/dynatrace-usql-query-frontend-time-servertime-network-time/31904/1 "2021-06-24T05:46:54Z")

</div>

Sharing something with you all. See if there is better way to do this, pls chime in and let me know

I was trying to investigate how to get (FrontEnd ,Server, Network) time for one of our critical trx and see a high level picture. We live in AWS & wanted to see the network time impact on our overall latency .

_select DATETIME(usersession.startTime, ‘HH:mm - MM/dd’, ‘60m’), MEDIAN(frontendTime) , MEDIAN(servertime), MEDIAN(networktime) from useraction WHERE useraction.name IN (“TRXName”) AND usersession.browserFamily IN (“Chrome”)_  
_GROUP BY DATETIME(usersession.startTime, ‘HH:mm - MM/dd’, ‘60m’)._

This allowed us to see the impact of netwok and how it can trigger latency for your app.

 ![shahrukh_niazi_0-1624513161769.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6028818454144bd0813f5383a0ac9b5edfabc7fa.jpeg)

i used median instead of average.&nbsp; Hope this helps & if there is a better way to see the impact of network on your app, do let me know pls.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [July 7, 2021, 7:31am UTC](https://community.dynatrace.com/t/dynatrace-usql-query-frontend-time-servertime-network-time/31904/2 "2021-07-07T07:31:43Z")

</div>

Hi&nbsp;[@shahrukh\_niazi](https://community.dynatrace.com/user/28206)

This is a good USQL, but depending on your need,

If you need the median or the AVERAGE because its not the same meaningful.
