| parrotcode: A stopwatch using SDL::LCD | |
| Contents | Libraries | 

SDL::StopWatch - A stopwatch using SDL::LCD

    # create the stopwatch
    watch = new 'SDL::StopWatch', 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-2007, The Perl Foundation.
|  |   |