forked from TrueCloudLab/frostfs-node
[#1135] sdnotify: Send MONOTONIC_USEC on reload
Fixes #1135 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
5c582e96fd
commit
f3e09cb09b
3 changed files with 27 additions and 0 deletions
10
pkg/util/sdnotify/clock.go
Normal file
10
pkg/util/sdnotify/clock.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package sdnotify
|
||||
|
||||
import (
|
||||
// For go:linkname to work.
|
||||
_ "unsafe"
|
||||
)
|
||||
|
||||
//go:noescape
|
||||
//go:linkname nanotime runtime.nanotime
|
||||
func nanotime() int64
|
Loading…
Add table
Add a link
Reference in a new issue