engine

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Target         []rune
	Results        []bool
	Index          int
	StartTime      time.Time
	EndTime        time.Time
	BackSpaceCount int
	IsError        bool
	Started        bool
	WpmSamples     []float64
	TimesSample    []time.Time
}

func NewSession

func NewSession(target string) *Session

func (*Session) AddTimesSample added in v0.1.3

func (s *Session) AddTimesSample(timeSample time.Time)

func (*Session) AddWpmSample added in v0.1.3

func (s *Session) AddWpmSample(sample float64)

func (*Session) BackSpace

func (s *Session) BackSpace()

func (*Session) CalculateAccuracy

func (s *Session) CalculateAccuracy() float64

func (*Session) CalculateLiveTypingSpeed added in v0.1.3

func (s *Session) CalculateLiveTypingSpeed() float64

func (*Session) CalculateRawTypingSpeed

func (s *Session) CalculateRawTypingSpeed() float64

func (*Session) CalculateTypingSpeed

func (s *Session) CalculateTypingSpeed() float64

func (*Session) IsFinished

func (s *Session) IsFinished() bool

func (*Session) Type

func (s *Session) Type(char string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL