i dontI don't know if this is what your looking for, but here it goes:
forFor speed effect: /effect @p 1 (if/effect @p 1
If you want more timeit for longer or faster, do it like this,example: /effect @p 1 255 10/effect @p 1 255 10
HOPE THIS IS WHAT YOU WERE LOOKING FORHope this helps! -Foil