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 6818449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:10:48+00:00 2026-05-26T21:10:48+00:00

Edited to clarify my intent: (based on initial answers) I have a web app.

  • 0

Edited to clarify my intent: (based on initial answers)

I have a web app. The server consists of a set of Java POJOs and I’m using Jersey to expose these as REST APIs. The browser calls these APIs, using jquery ajax, and does stuff.

I want to log the duration that my ajax queries take, and I want a break down by

  1. How long it took to send the query from browser to server (into my Java POJO)
  2. How long it took for the Java POJO to process the request
  3. How long it took for response to be transmitted to browser (from POJO exit point to onComplete: entry point in javascript)

I’m also looking for a code based solution that I can apply systematically across my app.

So, 2 on its own is trivial, and timing the whole sequence is trivial. But I’m not sure about getting the breakdown for 1 & 3. I was initially going to pass the system time as a GET param, and compare to currentTimeMillis on the server – but this relies on the browser system time being in sync with the server system time. Unlikely to be reliable.

Are there any other suggestions?

  • 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-26T21:10:48+00:00Added an answer on May 26, 2026 at 9:10 pm

    See “How do you determine exactly when, accounting for network latency, a HTTP request was sent?“, the answer explains how you can “calibrate” the client-side time with the server-side time. Note that this calibration will not be exact. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATED/EDITED to clarify: I have the following defined in my Blog AR object scope
--edited for clarity (hopefully) I have an XML file that looks something like this:
Edited Question: This should be clear. using System; namespace UpdateDateTimeFields { class Program {
I am using a delegate command . I have noticed that regardless CanExecute is
I've been impressed by the screencasts for Rails that demonstrate the built-in web server,
Edited in a feeble attempt to clarify. The system converts XML into another XML
I'm trying to consuming a client's web service using WCF. The client's web service
I have an application under development using ASP.NET MVC 2 with jQuery. I have
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3. Edited for clarity. I have a shared library in which
I have a set of image paths stored in a table like this: +---------------------------------------------------------+

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.