|parrotcode: A stopwatch using SDL::LCD|
|Contents | Libraries|
SDL::StopWatch - A stopwatch using SDL::LCD
# create the stopwatch $I0 = find_type 'SDL::StopWatch' watch = new $I0, screen # set its position watch.'xpos'( 5 ) watch.'ypos'( 5 ) # start it watch.'start'()
You can start, stop and reset this stopwatch. You do not need to draw it while it is running, this is done by an internal timer.
An SDL::StopWatch object has the following methods:
Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.
Copyright (c) 2004, The Perl Foundation.