UNPKG

@pokt-network/pocket-js

Version:

Pocket-js core package with the main functionalities to interact with the Pocket Network.

34 lines (33 loc) 683 B
/** * * * @class ProfileResult */ export declare class ProfileResult { readonly blockKey: string; timeElapsed: number; private readonly startTime; /** * Profile result. * @constructor * @param {string} blockKey - Code Block key name. */ constructor(blockKey: string); /** * * Saves the current recording * @returns {JSON} - JSON Object. * @memberof ProfileResult */ save(): void; /** * * Returns an object with the recording results * @returns {JSON} - JSON Object. * @memberof ProfileResult */ toJSON(): { block_key: string; time_elapsed: number; }; }