Sign in
go
/
tools
/
8087911863a8b7dcb44166290f838e06ef1bbfdc
/
.
/
refactor
/
eg
/
testdata
/
B1.golden
blob: b2ed30b72fcf28fb8dadb2a808034722733448c4 [
file
] [
log
] [
blame
]
package
B1
import
"time"
var
startup
=
time
.
Now
()
func example
()
time
.
Duration
{
before
:=
time
.
Now
()
time
.
Sleep
(
1
)
return
time
.
Since
(
before
)
}
func msSinceStartup
()
int64
{
return
int64
(
time
.
Since
(
startup
)
/
time
.
Millisecond
)
}