introlab / odas

ODAS: Open embeddeD Audition System
MIT License
780 stars 248 forks source link

Unixtime instead of timestamp #133

Closed jake266637 closed 5 years ago

jake266637 commented 5 years ago

i want to edit snk_pots.c file so that the json file has "timestamp: 1542946537783" where 1542946537783 is the current unix time.

FrancoisGrondin commented 5 years ago

Isn't unixtime accurate to sec only?

jake266637 commented 5 years ago

hmm you are right that unix is the number of seconds since the 1/1/1970 but there seems to be a few ways to print unix in miliseconds--> they havent been working for me though. Really i just want the actual time the time stamp occurred in, doesn't really mater in what form this solution is.

FrancoisGrondin commented 5 years ago

Ok; well the timestamp in odas here is sort of a unique ID that indicates the frame index... maybe I could add a second timestamp that indicates real-time.

jake266637 commented 5 years ago

I see. A second index would be useful to me :)