Top "Timespec" questions

'timespec' is a structure allowing to store the time since Epoch (1. Jan 1970) providing nano seconds along with seconds.

Convert milliseconds to timespec for GNU port

I want to convert milliseconds into timespec structure used by GNU Linux. I have tried following code for the same. …

c linux datetime gnu timespec
Timespec redefinition error

While executing a Pthread program in C using Visual Studio 2015, I got the following error: Error C2011 'timespec': 'struct' type …

c windows visual-studio pthreads timespec
GCC with -std=c99 complains about not knowing struct timespec

When I try to compile this on Linux with gcc -std=c99, the compiler complains about not knowing struct timespec. …

c posix c99 timespec
Retrieve Linux Time using struct timespec

Can someone please suggest how can I retrieve linux time using struct timespec ts type? It just gives me time …

c linux posix timespec
Is there a standard way to convert a struct timeval into a struct timespec?

struct timeval represents and instant in time with two members, tv_sec (seconds) and tv_usec (microseconds). In this representation, …

c unix posix timeval timespec
Storage size of timespec isn't known

I have seen this solution but I am getting the same errors. For a class, we had to switch to …

c linux gnu c99 timespec
timespec on windows compilers

On posix it is possible to use timespec to calculate accurate time length (like seconds and milliseconds). Unfortunately I need …

c++ visual-studio elapsedtime timespec