История изменений
Исправление Deleted, (текущая версия) :
Зачем смотреть, когда должен работать clock()?
https://www.freebsd.org/cgi/man.cgi?query=clocks
The clock reported by clock(3). This is a virtual clock with a frequency that happens to be 128. Its actual frequency is given by the macro CLOCKS_PER_SEC. Note that CLOCKS_PER_SEC may be floating point. Do not use clock(3) in new programs under FreeBSD.
UPD: да, может быть лучше посмотреть на getrusage()
Исходная версия Deleted, :
Зачем смотреть, когда должен работать clock()?
https://www.freebsd.org/cgi/man.cgi?query=clocks
The clock reported by clock(3). This is a virtual clock with a frequency that happens to be 128. Its actual frequency is given by the macro CLOCKS_PER_SEC. Note that CLOCKS_PER_SEC may be floating point. Do not use clock(3) in new programs under FreeBSD.