I do not know Arduino but in Mach3 it is specified in the controller (General Config) whether it is seconds or milli seconds

And the code is G04 P50

Phil