feat: use monotonic high resolution timer for worker tasks statistics
[poolifier.git] / src / utility-types.ts
index 0fdaa36e19c34e1ace772866e174c4d5b6905381..05af4e3d396b7c89d22ba0c895ceb6c4649e5f42 100644 (file)
@@ -32,9 +32,9 @@ export interface MessageValue<
    */
   readonly error?: string
   /**
-   * Task runtime.
+   * Runtime.
    */
-  readonly taskRunTime?: number
+  readonly runTime?: number
   /**
    * Reference to main worker.
    *
@@ -46,6 +46,7 @@ export interface MessageValue<
 /**
  * An object holding the execution response promise resolve/reject callbacks.
  *
+ * @typeParam Worker - Type of worker.
  * @typeParam Response - Type of execution response. This can only be serializable data.
  */
 export interface PromiseResponseWrapper<