<human>:  run a function on a timer.
<bot>: Here is a Python function to run a timer

import time

def run_on_timer(func, interval):
  """
  Run a function on a timer.
  """
  import time
  import threading
  import queue
  import signal

  def run():
    while True:
      time.sleep(interval)
      func()

  t = threading.Thread(target=run)
  t.daemon = True
  t.start()

  signal.signal(signal.SIGALRM, lambda signum, frame: t.join())
  signal.alarm(interval)

# Enter the function

def func():
  print('hello')

# Enter the interval
interval = 1

# Calling the function
print((run_on_timer(func, interval)))

#Example Output

# None

#Remember to inspect code for bugs.