Hi,
I'm not sure quite what you require ?
If you want to do something in software once every tenth of a second (
approx ), the simplest approach is:
use strict;
use warnings;
use Time::HiRes qw ( usleep );
my $continue = 1;
while( $continue ) {
... do something
usleep( 100000 ); # microseconds
}
In a none threaded application you might alternatively choose to use
'settimer' ( see the Time::HiRes docs ) and catch SIGALRM.
On the other hand, if you are saying that you have an external device
that requires an accurate clock signal then I'd have to look at
submitting the necessary updates to bcm2835 library and incorporating
these in the HiPi wrapper. You could do this with the software and
wrapper as is, but I won't venture there as I'm guessing this isn't
actually what you are interested in.
Regards
Mark
> --
> You received this message because you are subscribed to the Google
> Groups "HiPi Perl" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hipi-perl+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>