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. How can I find time that it is taking

How can I find time that it is taking

Scheduled Pinned Locked Moved Web Development
csharpcomperformancequestion
3 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.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    Dear friends, Can I find time that it is taking to execute a set of statements in .Net. Here I am opening a word document in a browser using aspose library, where I open it by writing some set of statements aspose and .net And I open it in a different browser by using window.target="_blank". Any way I want to know that, how much time that it is taking to open a new browser and the word document both. I want to calculate that time for better performance of my application. Thank you.

    S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

    H T 2 Replies Last reply
    0
    • I indian143

      Dear friends, Can I find time that it is taking to execute a set of statements in .Net. Here I am opening a word document in a browser using aspose library, where I open it by writing some set of statements aspose and .net And I open it in a different browser by using window.target="_blank". Any way I want to know that, how much time that it is taking to open a new browser and the word document both. I want to calculate that time for better performance of my application. Thank you.

      S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

      H Offline
      H Offline
      hhems
      wrote on last edited by
      #2

      just use timer

      1 Reply Last reply
      0
      • I indian143

        Dear friends, Can I find time that it is taking to execute a set of statements in .Net. Here I am opening a word document in a browser using aspose library, where I open it by writing some set of statements aspose and .net And I open it in a different browser by using window.target="_blank". Any way I want to know that, how much time that it is taking to open a new browser and the word document both. I want to calculate that time for better performance of my application. Thank you.

        S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

        T Offline
        T Offline
        theJazzyBrain
        wrote on last edited by
        #3

        Ok, go: DateTime R_start = DateTime.UtcNow; // DO YOUR THINGS HERE DateTime R_end = DateTime.UtcNow; long timeCounter = (long)(R_end - R_start).TotalMilliseconds; Response.Write (timeCounter);

        Jason Kataropoulos

        Excellence is not an act, but a habit!

        Aristotle

        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