Skip to content

MaxMEllon/quick-timing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quick-timing

npm version

About

You want to measure a function

Ex. Let's measure the targetFunction()

const value = targetFunction()

In many cases has next code.

performance.mark('start')
const value = targetFunction()
performance.mark('end')
performance.measure('targetFunction', 'start', 'end')

Just use this...

import { measure } from 'quick-timing'

const value = measure(() => targetFunction())

Like a useMemo interface in React.

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published