You are reading a single comment by @user107850 and its replies. Click here to read the full conversation.
  • Hi fanoush,

    the time is meant to be in ms and it can be since the start of the system (the most common case) or since the start of the algorithm. If you don't have a clock, you can just feed a variable which you increment of +sampling_frequency each time, as you say yourself.

    It should be OK to reduce the type it to 32 bits, but there is no check when the clock is reset.

    Alternatively, you could just get rid of the timestamp altogether, but whenever time is used later in the algorithm, you need to assume that it has increased of a given period.

About

Avatar for user107850 @user107850 started