var logger … // GetCPUTime returns the how much CPU time has passed since the start of this process. func GetCPUTime() int64 { … } type Rusage … // GetRusage returns the resource usage of current process. func GetRusage() *Rusage { … } // CPUTimeDiff returns the differences of user CPU time and system CPU time used // between two Rusage structs. func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64) { … } // SetTCPUserTimeout sets the TCP user timeout on a connection's socket func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { … } // GetTCPUserTimeout gets the TCP user timeout on a connection's socket func GetTCPUserTimeout(conn net.Conn) (opt int, err error) { … }