mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
timespect_get: move from cpp-cheat
This commit is contained in:
@@ -17107,6 +17107,10 @@ Good sanity check for user mode: <<qemu-user-mode-getting-started>>
|
||||
*** File IO
|
||||
**** link:userland/c/file_write_read.c[]
|
||||
**** link:userland/linux/open_o_tmpfile.c[]: https://stackoverflow.com/questions/4508998/what-is-an-anonymous-inode-in-linux/44388030#44388030
|
||||
** `time.h`
|
||||
*** link:userland/c/timespec_get.c[] `timespec_get` is a C11 for `clock_gettime` http://stackoverflow.com/questions/361363/how-to-measure-time-in-milliseconds-using-ansi-c/36095407#36095407
|
||||
+
|
||||
Vs `clock()`: http://stackoverflow.com/questions/12392278/measure-time-in-linux-getrusage-vs-clock-gettime-vs-clock-vs-gettimeofday
|
||||
* Fun
|
||||
** link:userland/c/loop.c[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user