]> Cypherpunks repositories - gostls13.git/commit
runtime: use OS X vsyscall for gettimeofday (386)
authorRuss Cox <rsc@golang.org>
Tue, 5 Jun 2012 20:23:30 +0000 (16:23 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 5 Jun 2012 20:23:30 +0000 (16:23 -0400)
commitc7be4defe31fbcbae028b382c707361d28d5d7ca
treef6c4d1cd46dea5ec6b7872f3cb935c986cd81110
parent09f48db3e17c71e2ab709efb760e2a305c67aace
runtime: use OS X vsyscall for gettimeofday (386)

amd64 was done in CL 6275056.

We don't attempt to handle machines with clock speeds
less than 1 GHz. Those will fall back to the system call.

benchmark       old ns/op    new ns/op    delta
BenchmarkNow          364           38  -89.53%

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6307045
src/pkg/runtime/sys_darwin_386.s