dbTalk Databases Forums  

Sleep in milliseconds in your 4GL

comp.databases.informix comp.databases.informix


Discuss Sleep in milliseconds in your 4GL in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SteFetS
 
Posts: n/a

Default Sleep in milliseconds in your 4GL - 08-18-2005 , 08:05 AM






Want to sleep in milliseconds in your 4GL program ?

// C function
fcm_millisleep(n)
int n;
{
int x;
int valret;

popint(&x);
valret=usleep(x*1000);

}

In your 4GL program : CALL fcm_millisleep(750)

SteFetS

Reply With Quote
  #2  
Old   
Art S. Kagel
 
Posts: n/a

Default Re: Sleep in milliseconds in your 4GL - 08-18-2005 , 11:16 AM






SteFetS wrote:
Quote:
Want to sleep in milliseconds in your 4GL program ?

// C function
fcm_millisleep(n)
int n;
{
int x;
int valret;

popint(&x);
valret=usleep(x*1000);

}

In your 4GL program : CALL fcm_millisleep(750)
Nice, how about packaging that and any other useful 4GL wrappers you have
and posting to the IIUG Software Repository (instructions on
www.iiug.org/software).

Art S. Kagel



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.