Added standby mode to reduce idling cpu load to near 0%

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-11-15 22:30:50 +01:00
parent 611e08340d
commit 486064cef3
15 changed files with 74 additions and 5 deletions

11
Tubio/TimeUnits.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
/* These are APPROXIMATIONS */
/* UNITS ARE SECONDS */
#define SECONDS(x) (x)
#define MINUTES(x) (SECONDS(60) * x)
#define HOURS(x) (MINUTES(60) * x)
#define DAYS(x) (HOURS(24) * x)
#define WEEKS(x) (DAYS(7) * x)
#define MONTHS(x) (WEEKS(4) * x)
#define YEARS(x) (MONTHS(12) * x)