Commit 61cf3823 by Edward Thomson

Merge pull request #2777 from sba1/amigaos-get-timer

Added git__timer() variant for AmigaOS.
parents aad27e6e 7cf86f92
......@@ -434,6 +434,17 @@ GIT_INLINE(double) git__timer(void)
return (double)time * scaling_factor / 1.0E9;
}
#elif defined(AMIGA)
#include <proto/timer.h>
GIT_INLINE(double) git__timer(void)
{
struct TimeVal tv;
ITimer->GetUpTime(&tv);
return (double)tv.Seconds + (double)tv.Microseconds / 1.0E6;
}
#else
#include <sys/time.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment