mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 20:44:02 +03:00
FILE / ScuroNeko/mtg
timeattack/init.go
Исходный файл и его история в репозитории.
11 lines
313 B
Go
11 lines
313 B
Go
// TimeAttack has implementation of mtglib.TimeAttackDetector.
|
|
package timeattack
|
|
|
|
import "time"
|
|
|
|
// DefaultDuration is a default duration when timestamps are acceptable.
|
|
//
|
|
// It means that all timestamps which are X-DefaultDuration <= X <=
|
|
// X+DefaultDuration are fine.
|
|
const DefaultDuration = 5 * time.Second
|