Changeset View
Changeset View
Standalone View
Standalone View
source/lib/sysdep/os/win/wposix/wtime.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* | * | ||||
* Permission is hereby granted, free of charge, to any person obtaining | * Permission is hereby granted, free of charge, to any person obtaining | ||||
* a copy of this software and associated documentation files (the | * a copy of this software and associated documentation files (the | ||||
* "Software"), to deal in the Software without restriction, including | * "Software"), to deal in the Software without restriction, including | ||||
* without limitation the rights to use, copy, modify, merge, publish, | * without limitation the rights to use, copy, modify, merge, publish, | ||||
* distribute, sublicense, and/or sell copies of the Software, and to | * distribute, sublicense, and/or sell copies of the Software, and to | ||||
* permit persons to whom the Software is furnished to do so, subject to | * permit persons to whom the Software is furnished to do so, subject to | ||||
* the following conditions: | * the following conditions: | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
struct timespec | struct timespec | ||||
{ | { | ||||
time_t tv_sec; | time_t tv_sec; | ||||
long tv_nsec; | long tv_nsec; | ||||
}; | }; | ||||
#endif | #endif | ||||
extern int nanosleep(const struct timespec* rqtp, struct timespec* rmtp); | extern int nanosleep(const struct timespec* rqtp, struct timespec* rmtp); | ||||
extern int clock_gettime(clockid_t clock, struct timespec* ts); | |||||
extern int clock_getres(clockid_t clock, struct timespec* res); | |||||
LIB_API char* strptime(const char* buf, const char* format, struct tm* timeptr); | LIB_API char* strptime(const char* buf, const char* format, struct tm* timeptr); | ||||
#endif // #ifndef INCLUDED_WTIME | #endif // #ifndef INCLUDED_WTIME |
Wildfire Games · Phabricator