Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
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
↪ replying to SteFetS
Art S. Kagel — — source: Usenet: comp.databases.informix
SteFetS wrote:
> 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
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.