aboutsummaryrefslogblamecommitdiff
path: root/vendor/github.com/jackc/puddle/v2/nanotime_time.go
blob: f8e759386b3cfc4bf02e99a7c597f88260745af5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                           
//go:build purego || appengine || js

// This file contains the safe implementation of nanotime using time.Now().

package puddle

import (
	"time"
)

func nanotime() int64 {
	return time.Now().UnixNano()
}