ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > T-Clock

T-Clock 2010 (download)

<< < (93/171) > >>

Stoic Joker:
GitHub source code repository link added to first post/page.

paul_ray:
I don't know if there are plans to use the "GetTickCount64" function instead of the "GetTickCount" function in getting the uptime but it would be nice.

The new function does not have the 49.7 day limit.
It is supported starting with Vista.
(It does not require 64 bit OS).

http://msdn.microsoft.com/en-us/library/ms724411(v=VS.85).aspx
-paul_ray (April 06, 2011, 11:48 AM)
--- End quote ---

Hm... (there are now) That is an interesting option. Actually I had been planning to try using the other method that leverages the info stored in HKEY_PERFORMANCE_DATA ... But this sounds much easier/simpler/quicker - Not to mention a 585 million year wrap/limit should be sufficient for most folks... ;)

Thank you!

In looking at the code in on GitHub, I found the section that would have to be changed to support the new function.
In the format.c file around line 461, there is this comment "<--+++--<<<<< WTF (If AnyThing) Does This Do?!?!?!?"
In this block, the "st" would have to be a long (ULONGLONG). Then the function would be GetTickCount64().

Note a check for the OS version would need to be done here to see which version to call.

This section (with the comment "<--+++--<<<<< WTF (If AnyThing) Does This Do?!?!?!?") does the "System Uptime". -Stoic Joker (April 07, 2011, 07:05 AM)
--- End quote ---

power1power1:
quick question: How I can display GMT time? I know of w+05 thing but "05" is not constant and changes when daylight saving starts ...  :tellme:

LonelyPixel:
Why not set your computer's time zone to UTC instead of your local time zone? So it would be consistent with every other appearance of a clock in the system.

Stoic Joker:
IIRC GMT, UTC, & Zulu are all different ways to refer to the same thing (been awhile since I looked it up). T-Clock uses the system clock for its time source, so if the system is set to use DST then T-Clock has no choice but to do the same.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version