Since a number of temporary files will be generated by MathCode C++, we create a temporary directory and set this to the current working directory.

This function will be used to measure the time for external processes. We cannot rely on the Timing command since it includes only CPU time spent in the Mathematica kernel. It does not include time spent in external processes connected via MathLink.Italic