Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the data type "Currency" to store 64-bit result of GetTickCount64…
…() system call. * Use that system call for system and connection uptime. * Use the function GetTickCountMS() to return a number of milliseconds stored in a Currency data type. A Currency data type is a fixed-point decimal number and is stored in memory as a 64-bit number. When multiplied by 1000 and passed around as a Currency, it should support connection and system uptimes of approximately 2 million years without overflowing. * Redo the ConvertTime() function renamed to ConvertTimeInterval(): returns the human-readable string with correct plurals and no 0-value parts (unless the value is actually 0, then it returns "0 seconds"). * Remove GetUptimeMS() in favor of GetTickCountMS(). * Remove the uTicks variable in favor of storing the connection GetTickCount() value on logon and calculating the difference. * Remove timeGetSystemTime() system call and related structures. * .uptime now only shows the system uptime part when not connected.
- Loading branch information
Showing
12 changed files
with
148 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.