Checking Block Speeds menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Cephalopod's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Checking Block Speeds

    Is there any accurate way of measuring how long it takes a block of code to execute from start to finish?

    Just want to find a method of measuring how much speed I gain via the optimisations I am doing to some code.

    Checking Block Speeds
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Midol View Post
    Is there any accurate way of measuring how long it takes a block of code to execute from start to finish?

    Just want to find a method of measuring how much speed I gain via the optimisations I am doing to some code.
    Unit tests, profiling, or simple DateTime functions.

    Code:
    void Foo()
    {
    DateTime start = DateTime.Now;
    // you're code here
    TimeSpam timeTaken = DateTime.Now - start;
    Console.WriteLine("Time Taken: {0}ms.", timeTaken.Milliseconds);
    }

  3. #3
    Cephalopod's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mate,

    Will test it out next weekend (12 hour night shifts leave no time for programming.)

Similar Threads

  1. Replies: 4
    Last Post: 07-11-2012, 01:25 PM
  2. Block resurrection of the opposite faction in battle grounds
    By Matt in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 06-08-2006, 03:19 AM
  3. Run with mount speed in BG's
    By Matt in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 05-13-2006, 06:59 PM
  4. Epic Mount Speed in a BG
    By Muryllis in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 04-25-2006, 12:45 AM
  5. Beyond the Deadmines Exploit (check it out! trippy)
    By Utensil in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 04-10-2006, 10:44 PM
All times are GMT -5. The time now is 11:29 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search