Monday 18 January 2016

Sleep Function – Dynamics AX

Pauses the execution of the current thread for the specified number of milliseconds.
static void sleepExample(Args _arg)
{
    int seconds = 10; // number of second to sleep
    int i;
    ;
    i = sleep(seconds*1000);  
    print "job slept for " + int2str(i/1000) + " seconds";
    pause;  
}

No comments:

Post a Comment