Integrate the Design Creations license and refine the monitor

This commit is contained in:
2026-11-26 21:46:52 -06:00
parent d2f8550111
commit 8079bf0ca6
51 changed files with 989 additions and 42 deletions

View File

@@ -1,3 +1,10 @@
# Adaptive Resource Monitor
# Original developer: Sonja M Thomas
# Copyright 2010-2026 SLT Design Creations, LLC
# Licensed under the Design Creations Attribution-NonCommercial-ShareAlike License v1.0.
# See LICENSE.md for complete license terms.
# https://www.designcreations.us/
"""Windows performance data and adapter identity."""
import ctypes as ct
from ctypes import wintypes as w
@@ -9,6 +16,13 @@ import winreg
LOG = logging.getLogger(__name__)
def uptime_counter():
counter = ct.WinDLL("kernel32").GetTickCount64
counter.argtypes = ()
counter.restype = ct.c_uint64
return counter
class _Double(ct.Structure):
_fields_ = [("status", w.DWORD), ("value", ct.c_double)]