Skip to content

Runtime error trying to use process.hrtime() #2692

Closed
@brian-hay

Description

@brian-hay

Question

When I try to use process.hrtime() I receive a runtime error:

import { process } from 'process';

export function start(): void {
  const time: u64 = process.hrtime();
}
caught TypeError: Illegal invocation
    at ~lib/process/process.hrtime (process.ts:36:15)
    at assembly/index/start (index.ts:63:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions