powerd++  0.4.4
Typedefs
types Namespace Reference

A collection of type aliases. More...

Typedefs

typedef std::chrono::milliseconds ms
 Millisecond type for polling intervals.
 
typedef int coreid_t
 Type for CPU core indexing.
 
typedef unsigned long cptime_t
 Type for load counting. More...
 
typedef unsigned int mhz_t
 Type for CPU frequencies in MHz.
 
typedef int decikelvin_t
 Type for temperatures in dK.
 

Detailed Description

A collection of type aliases.

Typedef Documentation

◆ cptime_t

typedef unsigned long types::cptime_t

Type for load counting.

According to src/sys/kern/kern_clock.c the type is long (an array of loads long[CPUSTATES] is defined). But in order to have defined wrapping characteristics unsigned long will be used here.