• Preparing search index...
  • The search index is not available
NewDash
  • NewDash
  • functional/timeIt
  • timeIt

Function timeIt

  • timeIt(fn): Promise<number>
  • time the executing time for sync/async function

    Parameters

    • fn: AsyncFunction<[], void>

      execution function

    Returns Promise<number>

    the consumed milliseconds of the function execution

    Since

    5.19.0

    Example

    const consumedMSeconds = await timeIt(async () => {
    // some async operations
    })
    • Defined in build/repo/src/functional/timeIt.ts:20
  • timeIt(fn): number
  • Parameters

    • fn: GeneralFunction<[], void>

    Returns number

    • Defined in build/repo/src/functional/timeIt.ts:21

Settings

Member Visibility

Theme

NewDash
  • add
  • addPrefix
  • addSuffix
  • after
  • any
  • ary
  • assert
  • assert/errors
  • assign
  • assignIn
  • async
  • async/LazyPromise
  • async/allSettled
  • async/filter
  • async/map
  • at
  • attempt
  • before
  • bind
  • cacheIt
  • cacheItTTL
  • cacheProvider
  • camelCase
  • capitalize
  • castArray
  • ceil
  • chunk
  • clamp
  • clone
  • cloneDeep
  • cloneDeepWith
  • cloneWith
  • compact
  • concat
  • concurrency
  • concurrency/debounce
  • concurrency/limit
  • concurrency/reuse
  • concurrency/timeout
  • cond
  • conforms
  • conformsTo
  • constant
  • countBy
  • create
  • curry
  • debounce
  • deburr
  • defaultTo
  • defaults
  • defaultsDeep
  • defer
  • delay
  • difference
  • differenceBy
  • differenceWith
  • divide
  • drop
  • dropRight
  • dropRightWhile
  • dropWhile
  • each
  • eachRight
  • endsWith
  • eq
  • eqDeep
  • escape
  • escapeRegExp
  • every
  • everyValue
  • fallback
  • fallback/cache
  • fallback/circuit
  • fallback/retry
  • fallback/toTry
  • fill
  • filter
  • filterObject
  • find
  • findIndex
  • findKey
  • findLast
  • findLastIndex
  • findLastKey
  • first
  • flatMap
  • flatMapDeep
  • flatMapDepth
  • flatten
  • flattenDeep
  • flattenDepth
  • flip
  • floor
  • flow
  • flowRight
  • forEach
  • forEachRight
  • forOwn
  • forOwnRight
  • fromEntries
  • functional/BlockedQueue
  • functional/LRUMap
  • functional/Mutex
  • functional/MutexMap
  • functional/Semaphore
  • functional/SemaphoreMap
  • functional/TTLMap
  • functional/defineFunctionName
  • functional/functionWrapper
  • functional/hash
  • functional/hashEqual
  • functional/timeIt
    • timeIt
  • functional/toHashCode
  • functions
  • get
  • groupBy
  • gt
  • gte
  • has
  • hasIn
  • hasPath
  • hashSort
  • head
  • inRange
  • includes
  • index
  • indexOf
  • initial
  • intersection
  • intersectionBy
  • intersectionWith
  • invert
  • invertBy
  • invoke
  • invokeMap
  • isArguments
  • isArray
  • isArrayBuffer
  • isArrayLike
  • isArrayLikeObject
  • isAsyncFunction
  • isBoolean
  • isBuffer
  • isCircular
  • isClass
  • isDate
  • isElement
  • isEmpty
  • isEqual
  • isEqualWith
  • isError
  • isFunction
  • isInstance
  • isLength
  • isMap
  • isMatch
  • isMatchWith
  • isNil
  • isNull
  • isNumber
  • isObject
  • isObjectLike
  • isPlainObject
  • isRegExp
  • isSet
  • isString
  • isSubClass
  • isSymbol
  • isTypedArray
  • isUndefined
  • isWeakMap
  • isWeakSet
  • iteratee
  • join
  • kebabCase
  • keyBy
  • keys
  • keysIn
  • last
  • lastIndexOf
  • logic
  • lowerCase
  • lowerFirst
  • lt
  • lte
  • map
  • mapKeys
  • mapValues
  • matches
  • matchesProperty
  • math/mean
  • math/stdDeviation
  • math/sum
  • math/variance
  • max
  • maxBy
  • md5
  • mean
  • meanBy
  • memoize
  • merge
  • mergeWith
  • method
  • methodOf
  • min
  • minBy
  • multiply
  • negate
  • nth
  • nthArg
  • omit
  • once
  • orderBy
  • over
  • overArgs
  • overEvery
  • overSome
  • pad
  • padEnd
  • padStart
  • partial
  • partialRight
  • partition
  • pick
  • pickBy
  • property
  • propertyOf
  • pull
  • pullAll
  • pullAllBy
  • pullAllWith
  • pullAt
  • random
  • range
  • rangeRight
  • rearg
  • reduce
  • reduceRight
  • reject
  • remove
  • repeat
  • replace
  • result
  • retry
  • round
  • sample
  • sampleSize
  • series
  • set
  • setWith
  • shuffle
  • size
  • sleep
  • slice
  • snakeCase
  • some
  • someValue
  • sortBy
  • sortedIndex
  • sortedIndexBy
  • sortedIndexOf
  • sortedLastIndex
  • sortedLastIndexBy
  • sortedLastIndexOf
  • sortedUniq
  • sortedUniqBy
  • split
  • startCase
  • startsWith
  • string
  • string/distance
  • subtract
  • sum
  • sumBy
  • tail
  • take
  • takeRight
  • takeRightWhile
  • takeWhile
  • throttle
  • timeout
  • times
  • toArray
  • toFinite
  • toInteger
  • toLength
  • toLower
  • toNumber
  • toPath
  • toPlainObject
  • toSafeInteger
  • toString
  • toUpper
  • transform
  • trim
  • trimEnd
  • trimPrefix
  • trimStart
  • trimSuffix
  • truncate
  • types
  • unWrap
  • unescape
  • union
  • unionBy
  • unionWith
  • uniq
  • uniqBy
  • uniqWith
  • uniqueId
  • unset
  • unzip
  • unzipWith
  • update
  • updateWith
  • upperCase
  • upperFirst
  • values
  • without
  • words
  • wrap
  • xor
  • xorBy
  • xorWith
  • zip
  • zipObject
  • zipObjectDeep
  • zipWith