Files
bl/common/utils/timer/t_test.go

18 lines
263 B
Go
Raw Normal View History

// 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)
}