WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Need some clarification regarding 'GetTime()' (https://www.wowinterface.com/forums/showthread.php?t=54207)

Layback_ 08-14-16 03:12 AM

Need some clarification regarding 'GetTime()'
 
According to WoWWiki, GetTime() returns the time (in seconds) since your own computer booted up.

So, I dumped it and got 116717 seconds which would be 32.42 hours which absolutely doesn't make sense.

Could I get some clarification regarding this?

syncrow 08-14-16 04:40 AM

just tested it:

Code:

/run print(GetTime())
result:
Code:

1244.085
->1244s, 85ms
->->20m, 44s, 85ms

seems to work, fine

Layback_ 08-14-16 05:17 AM

Quote:

Originally Posted by syncrow (Post 317895)
just tested it:

Code:

/run print(GetTime())
result:
Code:

1244.085
->1244s, 85ms
->->20m, 44s, 85ms

seems to work, fine

That's interesting.

When I print the same thing, it results this:



Code:

/run print(GetTime());
        125084.976
        -> 125084 seconds 976 milliseconds
        -> -> 2084 minutes 44 seconds 976 milliseconds
        -> -> -> 34 hours 44 minutes 44 seconds 976 milliseconds


TOM_RUS 08-14-16 11:34 AM

Pretty sure sleep/hibernate doesn't reset time since system start. Have you checked what system uptime displayed in windows task manager (probably only available on Win10)? It should match perfectly.

Layback_ 08-14-16 07:41 PM

Quote:

Originally Posted by TOM_RUS (Post 317899)
Pretty sure sleep/hibernate doesn't reset time since system start. Have you checked what system uptime displayed in windows task manager (probably only available on Win10)? It should match perfectly.

Yeah, you were right!

Just checked my system's uptime in task manager and it was like 2 days 1 hour x minutes xx seconds.

According to research, it's more like a new feature from windows 8 that the CPU hibernates itself even if you shut down your computer. (Further details and way to turn this feature off can be found here)

It's working perfect now :)


All times are GMT -6. The time now is 04:09 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI