Is there anyway to create a macro with delays in c++ like we can make functions ?

When i want make global functions i extend the UFunctionBlueprintLiberary ( Not sure this is the exact name ).
Is there a way to do the same with macros and to put delays in it ?