Added GetTime to expose al_get_time.

This commit is contained in:
Sander Schobers 2021-06-03 20:14:55 +02:00
parent 61164d8a92
commit 01f6911257

View File

@ -336,3 +336,7 @@ func (s *UserEventSource) EmitEvent() bool {
C.init_user_event(e) C.init_user_event(e)
return bool(C.al_emit_user_event(s.source, e, nil)) return bool(C.al_emit_user_event(s.source, e, nil))
} }
func GetTime() float64 {
return float64(C.al_get_time())
}