コード例 #1
0
ファイル: time.go プロジェクト: godispy/glfw
//SetTime sets the value of the GLFW timer. It then continues to count up from
//that value.
//
//The resolution of the timer is system dependent, but is usually on the order
//of a few micro- or nanoseconds. It uses the highest-resolution monotonic time
//source on each supported platform.
func SetTime(time float64) {
	C.glfwSetTime(C.double(time))
}
コード例 #2
0
ファイル: glfw.go プロジェクト: andrebq/glfw
// SetTime sets the current time of the high precision timer to the specified
// time. Subsequent calls to glfw.Time will be relative to this time. The time
// is given in seconds.
func SetTime(t float64) { C.glfwSetTime(C.double(t)) }
コード例 #3
0
ファイル: time.go プロジェクト: godispy/glfw
// SetTime sets the value of the GLFW timer. It then continues to count up from
// that value.
//
// The resolution of the timer is system dependent, but is usually on the order
// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time
// source on each supported platform.
func SetTime(time float64) {
	C.glfwSetTime(C.double(time))
	panicError()
}