[Leaplist] need some jiffies

Richard F. Ostrow Jr. kshots at warfaresdl.com
Tue Oct 9 10:52:34 EDT 2007


Hmm... the last time I'd heard of the word "jiffies" was back when I was
coding on the C64 when I was 12 years old. I believe the definition back
then was more linked to machine cycles than any measurement of time... so
a jiffy on one machine will be different than a jiffy on another
machine(hence a "jiffy" is not equal to x microseconds).

Given that definition, would you really want to use jiffies? I'd think
you'd want a more uniform measurement of time. Are you trying to measure
how much time passed? Are you trying to wait a specific amount of time?
What is it you're trying to do?
-- 
Life without passion is death in disguise

On Mon, October 8, 2007 6:13 pm, Doug Jones wrote:
> C coders,
> I'm happy as a clam at high tide when there's been a rum locker spill.
> I'm
> actually doing some development
> on one of my linux boxes to replace a dos app that yaks to my most favored
> CANbus (embedded stuff).  However, I need to do a little medium resolution
> timing.  My current learning experience is to try to get the linux
> heartbeat
> system tic known as 'jiffies' rather than system time since jan 1, 1970.
> The jiffies would put me back in paradigm I'm used to in embedded stuff.
>
> So my question, anyone got a good C example of how to get jiffies from
> user
> space?  I've found linux/jiffies.h but when i include i get a bazillion
> compile errors.  I just need a simple example that shows all the include
> files.  Yes, I googled and ended up in kernel development too much (head
> exploded).
>
> Hopefully I'll see some of y'all at the redhat thing tomorrow (9oct).
>
> Thanks,
> Doug "eaglebeak" jones
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>




More information about the Leaplist mailing list