Example #1
0
func CreateTimer(speed_secs float64) *Timer {
	var t *Timer

	t = (*Timer)(C.al_create_timer(C.double(speed_secs)))

	return t
}
Example #2
0
File: al.go Project: beoran/algo
// Creates a timer wih the given tick speed.
func CreateTimer(speed_secs float64) *Timer {
	return wrapTimer(C.al_create_timer(C.double(speed_secs)))
}
Example #3
0
func CreateTimer(speedSecs float64) *Timer {
	return (*Timer)(unsafe.Pointer(C.al_create_timer(C.double(speedSecs))))
}