()
| 13 | var sharedFastTime = NewFastTime() |
| 14 | |
| 15 | func init() { |
| 16 | if !teaconst.IsMain { |
| 17 | return |
| 18 | } |
| 19 | |
| 20 | var ticker = time.NewTicker(200 * time.Millisecond) |
| 21 | goman.New(func() { |
| 22 | for range ticker.C { |
| 23 | sharedFastTime = NewFastTime() |
| 24 | } |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | func Now() *FastTime { |
| 29 | return sharedFastTime |
nothing calls this directly
no test coverage detected