function pb_sleep_ms(ms)
% FUNCTION NAME:
%   pb_sleep_ms
%
% DESCRIPTION:
%   This function allows you to pause execution of your software for a given number  
%   of milliseconds, and behaves like the sleep() function found on many operating 
%   systems. This is provided because  the sleep() function is not standard across 
%   all operating systems/programming environments.
% 
%   This function does *NOT* interact with the hardware or pulse program at all. 
%   It simply provides a portable way to access a sleep function.
% 
% INPUT:
%   milliseconds - Number of milliseconds to sleep (pause program) for
%
% OUTPUT:
%
% $Revision: R2017a$ 
% $Author: SpinCore Technologies, Inc.$
% $Date: November 17, 2023$
% ------------------------------------------------------------------------------

global SPINAPI_DLL_NAME;

calllib(SPINAPI_DLL_NAME, 'pb_sleep_ms', ms);

end