shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
loopsCount
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.perf
This function calculate how mane loops are executed in a certain timeframe (ms). This is usefull to estimate the computer speed on which this code is running…
Params
- timeframe100Number
The timeframe to use for calculation
Return
- -Number
The count of loops executed in the passed timeframe
Example
import { loopsCount } from '@blackbyte/sugar/perf';
loopsCount(); // 122003Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space