Hello, The functions “gettimeofday” and “timersub” are called within the signal handler “toggle_done” so far. https://elixir.bootlin.com/linux/v6.10/source/tools/perf/bench/epoll-ctl.c#L90 Do such implementation details trigger any programming concerns according to asynchronous-signal-safety? https://wiki.sei.cmu.edu/confluence/display/c/SIG30-C.+Call+only+asynchronous-safe+functions+within+signal+handlers Regards, Markus