Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with vb codes
#1
need visual basic codes that calculate the elapsed time
Reply
#2
Shouldn't be too hard.
What are you making and how much experience do you have?
I CBF to write them, i'll have a look around though.
Is this what you mean?
http://support.microsoft.com/kb/213481
Reply
#3
You mean from when you started the application to when you finished it?

If that's what you're talking about, then just make a new timer with an interval of 1000, and enable it.

Create a new module and add:
Code:
Public lapsedTime As Int = 0

Double click on the timer and add this:
Code:
lapsedTime = lapsedTime + 1

Every second, lapsedTime will get added by 1 from the time the application was ran. You can format that however you like.
Reply
#4
I'ts very easy, although I only found out about it a few days ago
Code:
dim a as new stopwatch()
a.start()
'do whatever you want
msgbox(a.elapsedmillisecons) 'milliseconds passed since start

a.stop()'to pause it any time
a=new stopwatch() 'to reset it
My software company: Porosis Software
Games: Terrantula
Apps: Mathanasis, ColorGrabber
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Source Codes For Beginners Pt.1 SouR'D 14 4,544 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀
  Source Codes For Beginners Pt.2 SouR'D 9 3,627 11-25-2012, 10:35 PM
Last Post: ƃu∀ ıʞƃu∀

Forum Jump:


Users browsing this thread: 6 Guest(s)