backing up my work, final update with multicore support
This commit is contained in:
commit
0d4260fd35
6 changed files with 4235 additions and 0 deletions
16
helperFunctions.h
Normal file
16
helperFunctions.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
char * hoursToString(double h, char *str)
|
||||
{
|
||||
int m = int(round(h * 60));
|
||||
int hr = (m / 60) % 24;
|
||||
int mn = m % 60;
|
||||
|
||||
str[0] = (hr / 10) % 10 + '0';
|
||||
str[1] = (hr % 10) + '0';
|
||||
str[2] = ':';
|
||||
str[3] = (mn / 10) % 10 + '0';
|
||||
str[4] = (mn % 10) + '0';
|
||||
str[5] = '\0';
|
||||
return str;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue