signal.alarm function with resolution greater than 1 second?

前端 未结 1 394
难免孤独
难免孤独 2021-01-11 19:04

I\'m trying to build a python timeout exception that runs in milliseconds.

The python signal.alarm function has a 1 second resolution.

How would one get an e

相关标签:
1条回答
  • 2021-01-11 19:17

    Use signal.setitimer() instead.

    0 讨论(0)
提交回复
热议问题