[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unix tool as precise counter/timer for periodic print/exec



Hi Darac,

> I'm not entirely sure if such a tool exists, but one thing you will
> need to bear in mind is that you will need to make sure you're running
> a real-time kernel (apt-cache search linux-image-rt). This will allow
> you to run your look with real-time priority. If you don't have
> real-time priority, then you basically have no way of ensuring that
> you will be able to run print_counter at the specified time - you
> could always get delayed because the kernel is writing to disk or some
> other process is doing work.

I dont require that. Let me quote my original email:

> I do not need each print_counter to be executed exactly at a very
> precise moment but just that the overall frequency stays the same.
> After having it run 1000 times with a frequency of 1Hz I want 1000
> seconds to have passed.

This is also why I made the comparison to watch(1) with the --precise
argument, which does what I want but has other deficiencies.

Thank you for your input.

cheers, josch


Reply to: