answersLogoWhite

0

What is software timer?

Updated: 12/20/2022
User Avatar

Wiki User

15y ago

Best Answer

There are two types of timers: Hardware and Software.

Hardware timer is a small logic circuit with small piece of specific crystal which generate pulse at specific frequency. The problem with this kind of timer is that there are only a few of them in computer boards (some decades they did not use timer at all and instead electrical lines there used which was running precisely at 50Hz) and you might want to have more timers in your system. And here comes the software timer. Software timer is a descriptor in global timers table where all timers are checked every time hardware timer is triggered.

For example you have table (let it be your global timer table):

|Timer Id|Pointer to function|Time out|Init. value|Loop|

| 1 | checkIO | 1000 | 1000 |No |

| 2 | CleanBuffer | 9000 | 9000 |Yes |

| ....

Note: "Time out" and "Init. value" is in milliseconds.

Let's say my hardware timer is running at 1MHz, which means it is triggered a thousand times a second. Each time hardware timer is triggered I will be checking table to see if "Time out" column is equal to zero, if so I call function which pointer I have saved in "Pointer to function" column. If "Loop" is Yes "Time out" column is set to "Init. value". If "Loop" is No timer record from global timers table is removed.

This is very simple implementation of software timer. This was used only for example to better understand the difference of hardware and software timers.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is software timer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you implement a WD timer in software?

wd timer


Does the PS3 have a family timer?

No, get an XBOX if you want a console that is provided by a software company, not a game company. XBOX has a family timer.


What should I know before purchasing lawn maintenance software?

There is really no need for lawn maintenance software. A simple timer can take care of a watering schedule.


What are the four timers used in TCP?

Connection establishment timer, persist timer, keepalive timer, retransmission timer


Where can i find an online 10 second timer?

I do not think that u can find a useful 10 second online timer. I am not sure what you would like to time, but just the request to a server will porbably take more than 10 seconds. You can maybe use a client side timer, that is, one that runs a program on your own computer, just a java script timer that runs on you web browser . That may be ok, but directly to look at a server side timer, software that runs on a remote web site, is not a good solution. Hard to say what you need the timer for. There are some java script links below that may be helpful. If you give more details about the application of the timer, maybe i can help you


Is timer a short vowel?

No, "timer" does not have a short vowel sound. The "i" in "timer" is pronounced as a long vowel, like in the word "time."


Is Timer short vowel?

The i in timer is a long vowel and the e in timer has a short vowel.


Is there a timer on the blackberry curve?

it depends on if you mean a camera timer or an overall timer.. if an overall timer then yes. if a camera timer then no, none of the blackberry's have a timer for your camera. but if you go on app world and type in "nux shoot" you will get one, it is completely free and great.


What would happened if you wired a 240v ballast and a 120 v ballast into a heavy duty timer?

The timer has to be multi-pole. The ballast must be connected to the load contacts of the timer. If the timer is a 120 Volt timer, the timer has to run on a 120V. circuit. Loads are loads, and as long as you have a multi-load timer you can hook up whatever you want. If the timer only works on a shared power source (load shares the timer supply) you will need to use a contactor on the load side or the timer.


How does one set a timer in Java?

To create a timer you might try the java.util.Timer class.Check out the following methods:void schedule(TimerTask task, long delay, long period)Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.void scheduleAtFixedRate(TimerTask task, long delay, long period)Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.If you just want a one-time event you can still use a Timer instance and schedule a single TimerTask or just create a new Thread with anonymous Runnable class that sleeps for 3 minutes before doing something.new Thread(new Runnable() {public void run() {try {Thread.sleep(TimeUnit.MINUTES.toMillis(3));// do stuff here} catch (InterruptedException e) {// handle interruption}}}).start();


How many digit in a timer?

There are eight bits in a timer.


What is a programmable timer?

A programmable timer usually just means a timer that can be programmed to go off at any time.