• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / arche-model / 7695440998

29 Jan 2024 11:38AM CUT coverage: 98.296% (+0.09%) from 98.208%
7695440998

push

github

web-flow
Add functionality to advance the model stepwise (#52)

577 of 587 relevant lines covered (98.3%)

121.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/model/util.go
1
package model
2

3
import "time"
4

5
// nextTime calculates the next intended update.
6
func nextTime(last time.Time, fps float64) time.Time {
221✔
7
        if fps <= 0 {
222✔
8
                return last
1✔
9
        }
1✔
10
        dt := time.Second / time.Duration(fps)
220✔
11
        now := time.Now()
220✔
12
        if now.After(last.Add(200 * time.Millisecond)) {
249✔
13
                return now.Add(-10 * time.Millisecond)
29✔
14
        }
29✔
15
        return last.Add(dt)
191✔
16
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc