github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/os_freebsd_arm.c (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #include "runtime.h" 6 #include "defs_GOOS_GOARCH.h" 7 #include "os_GOOS.h" 8 9 void 10 runtime·checkgoarm(void) 11 { 12 // TODO(minux) 13 } 14 15 #pragma textflag 7 16 int64 17 runtime·cputicks(void) 18 { 19 // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand1(). 20 // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 21 // TODO: need more entropy to better seed fastrand1. 22 return runtime·nanotime(); 23 }