From 01f6911257f91a42e3523d966bfff1074b7831ae Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Thu, 3 Jun 2021 20:14:55 +0200 Subject: [PATCH] Added GetTime to expose al_get_time. --- event.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/event.go b/event.go index 2b146d0..7a3595a 100644 --- a/event.go +++ b/event.go @@ -336,3 +336,7 @@ func (s *UserEventSource) EmitEvent() bool { C.init_user_event(e) return bool(C.al_emit_user_event(s.source, e, nil)) } + +func GetTime() float64 { + return float64(C.al_get_time()) +}