Дополнения в описание проекта / Some addions in the description of the project
This commit is contained in:
parent
2ef0fc17c2
commit
3245407af4
8 changed files with 252 additions and 6 deletions
|
@ -3,6 +3,8 @@
|
|||
#include <math.h>
|
||||
#include <basic-geometry.h>
|
||||
|
||||
#define _POSIX_C_SOURCE >= 199309L
|
||||
|
||||
#ifdef _WIN64
|
||||
#include <windows.h>
|
||||
#else
|
||||
|
@ -130,8 +132,8 @@ int main()
|
|||
now = GetTickCount64();
|
||||
srand((unsigned int)(now & 0xfffffff));
|
||||
#else
|
||||
struct timespec now;
|
||||
clock_gettime(CLOCK_REALTIME, &now);
|
||||
timespec now;
|
||||
clock_gettime(0, &now);
|
||||
srand((unsigned int)(now.tv_nsec & 0xfffffff));
|
||||
#endif // _WIN64
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue