Ask a Question related to UNIX Programming, Design and Development.
-
Amundsen Zhuang #1
How to produce a fast clock output?
I want to produce a clock output on the pin of parallel port. I used
SIGALRM to implement it, and I only got a clock output with
20ms-cycle.
How could I produce a clock output that's cycle is 20us?
Amundsen Zhuang Guest
-
clock extension
Hey folks I'm looking for a reliable extension that allows me to have a customizable live clock. Any help? -
Pug Clock
http://pugpro.com/Files/PPClock.zip -
Need help with clock...
I am currently in the process of developing a Flash application that counts down an hour. I have also created code to load in an MP3 playlist file... -
#20382 [Com]: strtotime ("Monday", $date) can produce incorrect output
ID: 20382 Comment by: pierre dot baudracco at aliacom dot fr Reported By: nickj-phpbugs at nickj dot org Status: ... -
taskbar clock
"Tom S" <big_tom@earthlink.net> wrote in message news:029a01c340dc$ce250020$a501280a@phx.gbl... Move your cursor just over the top of the taskbar,... -
phil-news-nospam@ipal.net #2
Re: How to produce a fast clock output?
On 5 Aug 2003 01:22:48 -0700 Amundsen Zhuang <a_roald@hotmail.com> wrote:
| I want to produce a clock output on the pin of parallel port. I used
| SIGALRM to implement it, and I only got a clock output with
| 20ms-cycle.
|
| How could I produce a clock output that's cycle is 20us?
I presume you want 10us on, 10us off. How accurate does it need to be?
1. Hack the parallel port driver to spin in a loop toggling the port at the
right time. Good luck.
2. Use the sound card instead of the parallel port, and output a wave file
consisting of on and off. Be sure it can do 100 K samples / second.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | [url]http://linuxhomepage.com/[/url] [url]http://ham.org/[/url] |
| (first name) at ipal.net | [url]http://phil.ipal.org/[/url] [url]http://ka9wgn.ham.org/[/url] |
-----------------------------------------------------------------------------
phil-news-nospam@ipal.net Guest
-
Fletcher Glenn #3
Re: How to produce a fast clock output?
Amundsen Zhuang wrote:
You can't, unless you can gain exclusive use of the CPU. If you>
> I want to produce a clock output on the pin of parallel port. I used
> SIGALRM to implement it, and I only got a clock output with
> 20ms-cycle.
>
> How could I produce a clock output that's cycle is 20us?
did this, the system would no longer work. All UNIX tasks are
subject to time-slicing, meaning that you can only use so much
time before the system cuts over to another task. During the time
that the system is processing these other tasks, your task is
suspended.
--
Fletcher Glenn
email [email]f-g-l-e-n-n@quest.com[/email] (remove the dashes)
Fletcher Glenn Guest



Reply With Quote

