MCPcopy Create free account
hub / github.com/facebook/time / Close

Method Close

fbclock/fbclock.go:71–77  ·  view source on GitHub ↗

Close destroys fbclock wrapper

()

Source from the content-addressed store, hash-verified

69
70// Close destroys fbclock wrapper
71func (f *FBClock) Close() error {
72 errCode := C.fbclock_destroy(f.cFBClock)
73 if errCode != 0 {
74 return fmt.Errorf("destroying FBClock: %s", strerror(errCode))
75 }
76 return nil
77}
78
79// GetTime returns TrueTime
80func (f *FBClock) GetTime() (*TrueTime, error) {

Callers

nothing calls this directly

Calls 1

strerrorFunction · 0.85

Tested by

no test coverage detected