Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 834095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:37:24+00:00 2026-05-15T04:37:24+00:00

commonly on say PHP or other web frameworks getting the total response time is

  • 0

commonly on say PHP or other web frameworks getting the total response time is easy, just start the timer at the top of the file and stop it at the end.

In ASP.Net there is the whole Page Lifecycle bit though so I’m not sure how to do this. I would like for this response time recording to take place in a master page and the response time show up in the footer of pages. What would be the best way of doing this? Is there something built in to ASP.Net for it? Is it even possible to include the OnRender time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:37:25+00:00Added an answer on May 15, 2026 at 4:37 am

    You can do it on the Global.asax, take a look at this article

    void Application_BeginRequest(object sender, EventArgs e)
    {
    HttpContext.Current.Items["renderStartTime"] = DateTime.Now;
    }
    
    void Application_EndRequest(object sender, EventArgs e)
    {
    DateTime start = (DateTime) HttpContext.Current.Items["renderStartTime"];
    TimeSpan renderTime = DateTime.Now - start;
    HttpContext.Current.Response.Write("<!-- Render Time: " + renderTime + " -->");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to find a list of commonly mistyped keys on a keyboard for
Commonly used ofc, Klingon doesnt count :-) thanks, guys, let me run willItFit() testcases
We commonly use random() function to create random numbers in C++. The use of
What is the commonly accepted way so an admin can set panels/widgets positions (i.e.
The most commonly used 'C' Implementation of SSL (OpenSSL) doesn't support parallely operations on
What techniques do people commonly use for uploading, storing and presenting images with a
A set of APIs that I commonly use follow a linked-list pattern: struct SomeObject
Wikipedia says Base64 encoding schemes are commonly used when there is a need to
This question is a follow up to my previous Java GC question: Java Garbage
I'm working on a personal project focusing on analysis of text in a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.