mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-15 03:36:37 +00:00
ca729aa4a0
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.6.0 to 5.7.1. - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/compare/v5.6.0...v5.7.1) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
16 lines
490 B
Go
16 lines
490 B
Go
package puddle
|
|
|
|
import "time"
|
|
|
|
// nanotime returns the time in nanoseconds since process start.
|
|
//
|
|
// This approach, described at
|
|
// https://github.com/golang/go/issues/61765#issuecomment-1672090302,
|
|
// is fast, monotonic, and portable, and avoids the previous
|
|
// dependence on runtime.nanotime using the (unsafe) linkname hack.
|
|
// In particular, time.Since does less work than time.Now.
|
|
func nanotime() int64 {
|
|
return time.Since(globalStart).Nanoseconds()
|
|
}
|
|
|
|
var globalStart = time.Now()
|