Results 1 to 40 of 314

Thread: [Trial]Contest 1 - VB (.NET & Legacy) - Prime Numbers

Hybrid View

  1. #1
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    For everyone that is trying and don't know how to time their apps properly here is a class that the good old Platipus made some years ago. Don't think I have changed much in it. So the credit goes to him.


    Here is how you should use it:


    VB Code:
    1. Private Sub cmdCrunch_Click()
    2.    
    3. Dim Q As New sTime
    4.    
    5.     Q.Init
    6.    
    7.     Q.StartTime
    8.     findPrimes2    'Call your function
    9.     Q.StopTime
    10.    
    11.     MsgBox Q.RetTime
    12.    
    13. End Sub
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width