BlinkenArea - GitList
Repositories
Blog
Wiki
uproctrace
Code
Commits
Branches
Tags
Search
Tree:
4f36c1f
Branches
Tags
master
uproctrace
liblwpttr
src
timestamp.c
add exe and cwd to proc_begin
Stefan Schuermans
commited
4f36c1f
at 2020-05-17 11:16:27
timestamp.c
Blame
History
Raw
#include "timestamp.h" #include <lwproctrace.pb-c.h> #include <time.h> void lwpttr_event_get_timestamp(struct _Lwproctrace__Timespec *timestamp) { struct timespec now; clock_gettime(CLOCK_REALTIME, &now); timestamp->sec = now.tv_sec; timestamp->has_nsec = 1; timestamp->nsec = now.tv_nsec; }