The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Device::BCM2835::Timer - Access to Raspberry Pi's timer

VERSION

Version 1.01

SYNOPSIS

This module's timer() method returns the current value of the Raspberry Pi's internal timer.

    use Device::BCM2835::Timer;
    say Device::BCM2835::Timer::timer();

FUNCTIONS

timer()

This function returns the number of microseconds elapsed since the Raspberry Pi in hand was turned on.

The function gives the value of the 64 bit timer counter installed on the BCM2835 chip. It ossillates at 1 MHz, thus every tick corresponds to 1 microsecond. Internally, it is a pair of two 32 bit registers, which are read and added up correspondently in pure Perl.

AUTHOR

Andrew Shitov, <andy at shitov.ru>

BUGS

Please report any bugs or feature requests to bug-device-bcm2835-timer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Device-BCM2835-Timer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Device::BCM2835::Timer

LICENSE AND COPYRIGHT

Copyright 2014 Andrew Shitov.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0).

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.