You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
carriages[i] |= ((uint64_t)(clock() *100 / CLOCKS_PER_SEC)) << (2*id*16); //shifting the current time (on 16 bits) to its correct place (in 'centiseconds') -> max is reached after cca 10 minutes
carriages[i] |= ((uint64_t)(clock() *100 / CLOCKS_PER_SEC- (uint64_t)((carriages[i] & ((uint64_t)((1<<16) -1)<<(2*id*16)))>>(2*id*16)))) << ((2*id+1)*16); //shifting the time difference (on 16 bits) to its correct place
0 commit comments