コード例 #1
0
ファイル: timer.go プロジェクト: bluepeppers/allegro
func (t *Timer) GetCount() int64 {
	var i int64

	i = int64(C.al_get_timer_count((*C.ALLEGRO_TIMER)(t)))

	return i
}
コード例 #2
0
ファイル: al.go プロジェクト: beoran/algo
// Gets the count (in ticks) of the timer
func (self *Timer) GetCount() int {
	return int(C.al_get_timer_count(self.handle))
}
コード例 #3
0
ファイル: timer.go プロジェクト: b1naryth1ef/allegro
func (t *Timer) GetCount() int64 {
	return int64(C.al_get_timer_count((*C.ALLEGRO_TIMER)(unsafe.Pointer(t))))
}