18 lines
263 B
Go
18 lines
263 B
Go
// Copyright 2020-2024 guonaihong, antlabs. All rights reserved.
|
|
//
|
|
// mit license
|
|
package timer
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"unsafe"
|
|
)
|
|
|
|
func Test_Look(t *testing.T) {
|
|
|
|
tmp := newTimeHead(0, 0)
|
|
offset := unsafe.Offsetof(tmp.Head)
|
|
fmt.Printf("%d\n", offset)
|
|
}
|