mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 00:12:15 +00:00
Merge pull request #2777 from sba1/amigaos-get-timer
Added git__timer() variant for AmigaOS.
This commit is contained in:
commit
61cf3823e3
11
src/util.h
11
src/util.h
@ -434,6 +434,17 @@ GIT_INLINE(double) git__timer(void)
|
|||||||
return (double)time * scaling_factor / 1.0E9;
|
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
|
#else
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user