Jerome Quelin > Language-Befunge-4.13 > Language::Befunge::lib::HRTI

Download:
Language-Befunge-4.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Language::Befunge::IP::lib::HRTI - High-Resolution Timer extension

DESCRIPTION ^

The HRTI fingerprint (0x48525449) allows a Funge program to measure elapsed time much more finely than the clock values returned by y.

The timer and mark-list are considered global and static, shared amongst all IP's, in order to retain tame behaviour. This timer is not affected by 'time travel' contrivances.

FUNCTIONS ^

new

Create a new HRTI instance.

Precision infos

$n = G()

Granularity pushes the smallest clock tick the underlying system can reliably handle, measured in microseconds.

Time measurements

M()

Mark designates the timer as having been read by the IP with this ID at this instance in time.

$microseconds = T()

Timer pushes the number of microseconds elapsed since the last time an IP with this ID marked the timer. If there is no previous mark, acts like r.

E()

Erase mark erases the last timer mark by this IP (such that T above will act like r).

$microseconds = S()

Second pushes the number of microseconds elapsed since the last whole second.

SEE ALSO ^

Language::Befunge, http://catseye.tc/projects/funge98/library/HRTI.html.

AUTHOR ^

Jerome Quelin, <jquelin@cpan.org>

COPYRIGHT & LICENSE ^

Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: