counting time to data log in one section of code, for use in the data write loop. so I have to use a global in some form to pass the information from where I do the calculating to where it is written to the SD card
I am just starting with time and datalogging so am bumping against the edges of my knowledge and believe me, it is a pretty small box I am working in.
May I offer that I asked because I don't know. Often one can make such an assumption, but it seems that in some cases, that is not the basis of the response.
Besides, if I have 3 times, actually 3 numbers, 2 digits each, that represent times. seconds, minutes, hours, they are not scalar, the are integers. AFAIK
Paul said "9 bytes, instead of three scalar variables that are one byte each. I don't understand that logic."
I guess my question is much deeper. A scalar variable, such as 17:23:03
vs three byte variables 17 , 20 and 03
does the one scalar, when declared as a global, does it use more memory than three variables of all bytes ?
it would seem to me you have the variable name, or address, then the stored value
3 names and 3 stored values vs 1 name and a larger stored value.
May I offer that reading the references has lead me in circles and brought me here.
http://playground.arduino.cc/Code/DatatypePractices
in reading this, it would seem that what Paul is implying is that you take one byte for the address, then one byte for each place, in my case 6 numbers and 2 letters, to have 9 bytes.