A timer in a function

Yes. But @rainman has used a pointer to bool in the parameter list for the function, as if she intends to use the function one day for multiple blinking <whatevers>, which won't work because

void Test(unsigned long time , bool* xOutput){
  static unsigned long lastTimeBlink = 0;

There is but one place to store the time of the last blink.

Or maybe that's what is desired, seems odd.

A solution would be to add a parameter for an unsigned long call by reference variable that would play a roll unique to the bool being time toggled.

a7