boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

getclock-ms-stub.before (195B)


      1 static unsigned getclock_ms(void)
      2 {
      3 #ifdef _WIN32
      4     return GetTickCount();
      5 #else
      6     struct timeval tv;
      7     gettimeofday(&tv, NULL);
      8     return tv.tv_sec*1000 + (tv.tv_usec+500)/1000;
      9 #endif
     10 }