After a week of struggling with getting the lua api for Desmume to work (Turns out you need a specific version of lua, which is not conveyed anywhere whatsoever), finally got it to work and wrote a quick benchmarking tool!
Yes unfortunately the clock resolution is seconds
Thanks for pushing me to look into this lua thing @tim4242
&dsilang