CpuTime constructor

CpuTime({
  1. required double user,
  2. required double kernel,
  3. required double idle,
  4. required double total,
})

Implementation

CpuTime({
  /// The cumulative time used by userspace programs on this processor.
  required double user,

  /// The cumulative time used by kernel programs on this processor.
  required double kernel,

  /// The cumulative time spent idle by this processor.
  required double idle,

  /// The total cumulative time for this processor.  This value is equal to
  /// user + kernel + idle.
  required double total,
}) : _wrapped = $js.CpuTime(
        user: user,
        kernel: kernel,
        idle: idle,
        total: total,
      );