Skip to content

inconsistent value types from uv_uptime #1294

@refack

Description

@refack

On Windows returned value is really a double (with fractions).
uptime = (double) (object_type->PerfTime.QuadPart - value) / (double) object_type->PerfFreq.QuadPart;

On others it's an integer (upcast to double):

struct timespec
	time_t  tv_sec    Seconds. 
	long    tv_nsec   Nanoseconds. 

*uptime = now.tv_sec;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions