title: Timer_fd python ? is there an equivalent
body: <p>I would like to know how to set a timer using python. I am currently using select.poll/epoll and creating a timerfd would have been the easiest method.</p>
  
  <p>The other way i see it is after the loop check if any of my event passed time and execute their function.</p>
  
  <p>Other method :</p>
  
  <pre><code>import select,time
  
  timeout =0
  epoll.register(rpm_file.fileno(), select.EPOLLPRI)
  
  while True:
    events = epoll.poll(0)
    for fileno,event in events:
      #processing fd events...
  
    now = time.time()
    if now &gt; timeout:
      # timeout events
  </code></pre>