i need to figure out a way to show a timer on screen that keeps updating every second (heh), and goes all the way to a selected time, then is able to send a message back to terminate the current function or something

any ideas how to start this?
(no, i dont want code or anything, but maybe some sites or what functions i need or something, i've tried searching, and nothing's really come up)

thanks