Debouncing a 12VIO input pin

Hi everyone

Looking for a little help debouncing a 12VIO pin when using “M2IO.GetButton_12VIO”.

I can’t get a millis function to work.

Has anyone done this?

Thanks

Joe