Close destroys fbclock wrapper
()
| 69 | |
| 70 | // Close destroys fbclock wrapper |
| 71 | func (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 |
| 80 | func (f *FBClock) GetTime() (*TrueTime, error) { |
nothing calls this directly
no test coverage detected