Precision timer

Posted on 2006-04-22
Last Modified: 2010-04-07
I'm trying different approaches on how to write a sub and get it as efficient as possible. To help in determening the speed, I need a timer so I can check how many milliseconds the sub needs to run.

How can i do this?
(By the way... I'm writing my code in VBA for Excel, but I figured this forum would be more appropriate)

Cheers, Arild
Question by:arildj78
    LVL 142

    Accepted Solution

    LVL 2

    Author Comment

    That was QUICK !!!
    A huge thanks to you from Northern part of Norway :)

    LVL 142

    Expert Comment

    by:Guy Hengel [angelIII / a3]
    Greetings from Luxemburg
    Glad I could help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now