Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to find the time taken for executing an application?

How to find the time taken for executing an application?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vsree
    wrote on last edited by
    #1

    Hi how can we find the time take by the application to execute a code snippet when an event is fired,say,while clicking a button,how to find the time it takes for the application to process the request and give the output,programmatically? Thanx!

    E 1 Reply Last reply
    0
    • V Vsree

      Hi how can we find the time take by the application to execute a code snippet when an event is fired,say,while clicking a button,how to find the time it takes for the application to process the request and give the output,programmatically? Thanx!

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      hi there: just give you my idea on this: - get the current time = t1 - ...your code here... - get the new current time = t2 => t2-t1 = time taken by app to execute the code snippet << >>

      V 1 Reply Last reply
      0
      • E enjoycrack

        hi there: just give you my idea on this: - get the current time = t1 - ...your code here... - get the new current time = t2 => t2-t1 = time taken by app to execute the code snippet << >>

        V Offline
        V Offline
        Vsree
        wrote on last edited by
        #3

        Thanx! But i need help to implement it in code behind. My actual requirement is how to find out the number of seconds the application takes to execute an event... Can anyone help me ,please? Thanx!

        E 1 Reply Last reply
        0
        • V Vsree

          Thanx! But i need help to implement it in code behind. My actual requirement is how to find out the number of seconds the application takes to execute an event... Can anyone help me ,please? Thanx!

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          Do you know how to get the system time?... << >>

          V 1 Reply Last reply
          0
          • E enjoycrack

            Do you know how to get the system time?... << >>

            V Offline
            V Offline
            Vsree
            wrote on last edited by
            #5

            ya..i know!

            R 1 Reply Last reply
            0
            • V Vsree

              ya..i know!

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              Then get it before you start, get it when it's finished, take one from t'other et voila - how long it took :)

              "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups