This invention proposes a method, device, and readable storage medium for testing the time consistency of digital therapy applications. Addressing the issues of the inability to simulate the time effects of real devices and the lack of clinical constraint
verification in long-term digital therapy testing, this method parses configuration information to obtain a set of time attributes for treatment tasks; constructs a virtual timeline engine to run an independent simulated
clock, using acceleration factors and superimposed
clock drift to simulate time base deviation; employs
system API hooks and
middleware proxies to construct a transparent proxy layer, intercepting and redirecting the
clock interface to achieve decoupled injection of the simulated clock and the absolute reference clock; and synchronously collects application-aware timestamps and real timestamps of trigger events during operation, automatically verifying time consistency based on clinical time-series constraint rules. This invention is primarily used for reliability
verification and compliance certification of time-sensitive medical digital therapy
software.