PC Review


Reply
Thread Tools Rate Thread

How Can I write a function that calculate the time it take to coomplete all the loops

 
 
ripamonti@gmail.com
Guest
Posts: n/a
 
      3rd Jan 2007
I have many loops in my vba programme.
How Can I write a function that calculate the time it take to coomplete
all the loops?
thanks

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      3rd Jan 2007
Set a timer at the start of the loop, and the end

nTime = Timer
'loop code
MsgBox Timer - nTime

but you need to run several times and average (and ignore best and worst?)
as other activity will affect the timings

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have many loops in my vba programme.
> How Can I write a function that calculate the time it take to coomplete
> all the loops?
> thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate time using this function =?Utf-8?B?SmVu?= Microsoft Access Queries 10 6th Oct 2006 03:44 PM
How do I write a formula in excel that will calculate time? =?Utf-8?B?c3RhY3k=?= Microsoft Excel Programming 1 15th Feb 2006 03:55 PM
How do I write an Excel formula to calculate my working time? =?Utf-8?B?R3JlZ0o=?= Microsoft Excel Worksheet Functions 3 27th Dec 2005 01:48 PM
How do I write the formula to calculate someones time worked =?Utf-8?B?ZGV1c3k=?= Microsoft Excel Worksheet Functions 3 16th Nov 2005 08:49 PM
how to write a function to calculate a contribution to retirement. =?Utf-8?B?bWVs?= Microsoft Excel Worksheet Functions 1 6th Oct 2004 08:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 PM.