Please leave your comments. Thank you
const unsigned long Nan = 1000; // 1 micro second
const unsigned long Mic = 1000; // 1 milli second
const unsigned long Mil = 1000; // 1 second
const unsigned long Sec = 60; // 1 minute
const unsigned long Min = 60; // 1 hour
const unsigned long Hrs = 12;
int Na = 0; // Store Nano Seconds
int Mi = 0; // Store Micro seconds
int Ml = 0; // Store Milli seconds
int Sc = 0; // Store Seconds
int Mn = 0; // Store Minutes
int Hr = 0; // Store Hours
boolean Nanos = false;
boolean Micro = false;
boolean Mills = false;
boolean detik = false;
boolean minut = false;
boolean hours = false;
const unsigned long Nanosecond = 1000000;
const unsigned long Microsecond = 1000;
const unsigned long millisecond = 1000;
const unsigned long Second = 60;
const unsigned long Minute = 1;
const unsigned long Hour = 1;
unsigned long prev_nano = 0;
unsigned long prev_micro = 0;
unsigned long prev_milli = 0;
unsigned long prev_second = 0;
unsigned long prev_minute = 0;
unsigned long prev_hour = 0;
unsigned long currentMillis = 0;
unsigned long currentMicro = 0;
void setup() {
currentMicro = micros();
currentMillis = millis();
}
void loop() {
calculate_Nanosecond();
calculate_Microsecond();
calculate_Millisecond();
calculate_Second();
calculate_Minute();
calculate_Hour();
Get_Current_Time();
}
/*Use oscilloscope to check functions.
calculate_Nanosecond
calculate_Microsecond
calculate_Millisecond
*/
void calculate_Nanosecond() {
}
void calculate_Microsecond() {
}
void calculate_Millisecond() {
}
void calculate_Second() {
}
void calculate_Minute() {
}
void calculate_Hour() {
}
void Get_Current_Time() {
}