Realizing method of adjustable-speed timer in Windows operation system environment

A technology of operating system and implementation method, applied in the direction of address formation of the next instruction, instrument, machine execution device, etc., can solve the problems of non-adjustable timer speed, fixed timer function, and single speed, etc., to achieve fixed function and satisfy The need for speed adjustment, the effect of convenient use

Active Publication Date: 2017-06-06
NORTHWESTERN POLYTECHNICAL UNIV
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Still another object of the present invention is to provide a method for realizing an adjustable-speed timer under the Windows operating system environment, which uses an APIC timer device to generate a clock signal of hundreds of microseconds in a Windows-driven manner, and achieves the highest precision. It is a high-precision timer of 100 microseconds; by modifying the value in the initial count register (initial count register) of the APIC timer at run

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realizing method of adjustable-speed timer in Windows operation system environment
  • Realizing method of adjustable-speed timer in Windows operation system environment
  • Realizing method of adjustable-speed timer in Windows operation system environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

[0035] figure 1 An implementation form according to the present invention is shown, and an implementation method of an adjustable-speed timer under the Windows operating system environment is shown. These include:

[0036] Step 1. Provide user mode interface: select APIC timer to provide a set of user mode interface;

[0037] Step 2, user-mode interface encapsulation: encapsulating the speed regulation function and time-related function interface as a dynamic link library for use by applications in the Windows operating system;

[0038] Step 3, dynamic link library loading: the application program loads the dynamic link library to realize the calling of the user mode interface;

[0039] Step 4, the new cycle value is imported into the kernel: the application program passes...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a realizing method of an adjustable speed timer in the Windows operation system environment. The method comprises that an APIC timer is selected to provide an user state interface; the user state interface is packaged, wherein adjustable-speed function and time correlation function interface are packaged to a dynamic linkbase used for application procedures of the Windows operating system; the application procedures load the dynamic linkbase to realize the call of the user state interface; the user state interface is called, and the adjusted APIC timer is inducted to the inner core; the adjusted APIC timer cycle is assigned to an initial counter register to realize cycle adjustment of the APIC timer cycle. According to the invention, the dynamic adjustment of the timer time interval is completed, time span proportional relations between the timer time interval and a real system are changed, the adjustable function of the timer is realized, the single rate problem of the timer is resolved, and the application requirements of the Windows program in different environments are met.

Description

technical field [0001] The invention relates to the technical field of interrupt processing, high-precision timing and system software development of Windows operating system. More specifically, the present invention relates to a method for realizing a high-precision and adjustable-speed timer by using an APIC (Advanced Programmable Interrupt Controller) timer under the Windows operating system environment. Background technique [0002] The Windows operating system provides users with three types of timers: WM_TIMER message timer, multimedia clock timer and high-precision clock timer. [0003] 1) WM_TIMER timer: WM_TIMER timer is the most basic timer of Windows, which is created and set interval by SetTimer(), and then destroyed by KillTimer(). After WM_TIMER is created, WM_TIMER messages will be sent to the specified thread regularly, and added to the message queue for processing. The WM_TIMER timer message is a low-priority message, and the WM_TIMER message will only be ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F1/08G06F9/32G06F9/54
CPCG06F1/08G06F9/327G06F9/546
Inventor 杜承烈王延钊陈进朝蒋泽军彭寒
Owner NORTHWESTERN POLYTECHNICAL UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products