metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

metrics calculates various typing metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accuracy

func Accuracy(prompt, input string) float64

Accuracy calculates the typing accuracy as a percentage based on the prompt and the user's input.

func WPM

func WPM(input string, time time.Duration) float64

WPM calculates the words per minute (WPM) based on the input string and the time duration provided. A word is defined as five characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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