I am learning x86 & arm64 assembly and wanted to write a console game. For this I wanted to generate some FPS kind of thing like, waiting 1/10th of a second and rendering a frame to generate 10 FPS.
I did this in c++ using usleep from unistd.h, and want recreate this in Assembly, I am going through the open source xnu system calls page from this link.
I did see wait4 and I don’t know what values to pass as arguments.
Please help, Thanks.