SourceTime

Forum for software developers to discuss BCI2000 software development
Locked
Francesco
Posts: 17
Joined: 09 Jun 2011, 03:13

SourceTime

Post by Francesco » 08 Mar 2013, 06:10

Hi,

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


Francesco

gschalk
Posts: 615
Joined: 28 Jan 2003, 12:37

Re: SourceTime

Post by gschalk » 09 Mar 2013, 08:17

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

mellinger
Posts: 1169
Joined: 12 Feb 2003, 11:06

Re: SourceTime

Post by mellinger » 11 Mar 2013, 10:48

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

Locked

Who is online

Users browsing this forum: Bing [Bot] and 1 guest