Page 1 of 1

SourceTime

Posted: 08 Mar 2013, 06:10
by Francesco
Hi,

I want to know if from SourceTime is possible to know the actual time h:m:s:ms


Francesco

Re: SourceTime

Posted: 09 Mar 2013, 08:17
by gschalk
SourceTime is in ms relative to some unknown time. Thus, you cannot get the absolute time using SourceTime. You could modify BCI2000 to also store the time of the beginning of a run, which you could use to "re-reference" SourceTime.

Gerv

Re: SourceTime

Posted: 11 Mar 2013, 10:48
by mellinger
Actually, BCI2000 stores the current date and time at the beginning of a run, in a parameter called StorageTime, immediately before sample data is written. Thus, the first SourceTime time stamp in the data file will correspond to that time and date.

As the StorageTime parameter will contain only seconds rather than milliseconds, an additional constant delay between 0 and 999ms may exist between StorageTime and the SourceTime stamps. However, this will not make any difference in practice, as a Windows system clock is unlikely to have an absolute accuracy better than 1s anyway.

Regards,
Juergen