How is ElapsedMilliseconds() determined?

Everything else that doesn't fall into one of the other PB categories.
Nituvious
Addict
Addict
Posts: 1033
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

How is ElapsedMilliseconds() determined?

Post by Nituvious »

Is it based on time of your computer being turned on or some other value?
▓▓▓▓▓▒▒▒▒▒░░░░░
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: How is ElapsedMilliseconds() determined?

Post by jassing »

Nituvious wrote:Is it based on time of your computer being turned on or some other value?
it's a value (that does wrap back around to 0) based on "since booted"; for more info, see the windows API GetTickCount()
Nituvious
Addict
Addict
Posts: 1033
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: How is ElapsedMilliseconds() determined?

Post by Nituvious »

Ah, alright. Thanks :)
▓▓▓▓▓▒▒▒▒▒░░░░░
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: How is ElapsedMilliseconds() determined?

Post by MachineCode »

BTW, the wrap-around time (since boot) is 49.7 days, so it may or may not be a problem, depending on how often you (or your users) reboot their PCs.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply