Thanks to Zhenning Zhang's answer this is how I have modified my function:
In ConsoleUtils.cpp:
void fastType(const std::string& text, int delay)
{
timeBeginPeriod(1);
for (char c : text)
{
std::cout << c;
Sleep(delay);
}
timeEndPeriod(1);
}
In ConsoleUtils.h:
void fastType(const std::string& text, int delay = 2);
In Main.cpp:
fastType("This is would be a paragraph of text with a delay of 2ms");
The above works perfectly for my intended use.