Due to this, try to define your function like this:
Code:
Function mach_absolute_time():Int64; cdecl; External 'libc';
For my library I use Carbon function Microseconds, but seems I will move to BSD gettimeofday, because it similar to Linux one, or will try to use mach_absolute_time how described here