https://github.com/Kitware/CMake
Revision 095cc2dc8d8e12828b6888ce72b771d1558c2834 authored by Brad King on 01 April 2020, 14:42:10 UTC, committed by Kitware Robot on 01 April 2020, 14:42:19 UTC
2 parent s 85f87c9 + 9b32801
Raw File
Tip revision: 095cc2dc8d8e12828b6888ce72b771d1558c2834 authored by Brad King on 01 April 2020, 14:42:10 UTC
Merge branch 'release-3.17'
Tip revision: 095cc2d
sleep.c
#if defined(_WIN32)
#  include <windows.h>
#else
#  include <unistd.h>
#endif

/* sleeps for n seconds, where n is the argument to the program */
int main(int argc, char** argv)
{
  int time;
  if (argc > 1) {
    time = atoi(argv[1]);
  }
#if defined(_WIN32)
  Sleep(time * 1000);
#else
  sleep(time);
#endif
  return 0;
}
back to top