Delay function?
BCS
ao at pathlink.com
Tue Sep 2 10:02:44 PDT 2008
Reply to Brendan,
> Brendan Wrote:
>
>> I looked through the Phobos page, but haven't found anything like it.
>> Is there a sort of delay function anywhere in Phobos?
>>
> Well, I just used 'sleep' from the Linux shell instead. I don't
> understand yet what I'm doing wrong with the following function,
> though. Could someone explain and advise?
>
> void scrollString( char[] s ) {
> for ( int i = 0; i < s.length; i++ )
> writef( s[i] );
> system( "sleep 0.2" );
> }
IIRC the are the standard sleep and usleep functions in std.c.something
More information about the Digitalmars-d-learn
mailing list