Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a392c101
Commit
a392c101
authored
Dec 09, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlm: use timespec_get()
parent
383a9210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/input/vlm.c
src/input/vlm.c
+4
-4
No files found.
src/input/vlm.c
View file @
a392c101
...
...
@@ -37,7 +37,7 @@
#include <time.h>
/* ctime() */
#include <limits.h>
#include <assert.h>
#include <
sys/time.h>
/* gettimeofday() */
#include <
time.h>
#include <vlc_vlm.h>
#include <vlc_modules.h>
...
...
@@ -259,10 +259,10 @@ int vlm_ExecuteCommand( vlm_t *p_vlm, const char *psz_command,
int64_t
vlm_Date
(
void
)
{
struct
time
val
tv
;
struct
time
spec
ts
;
(
void
)
gettimeofday
(
&
tv
,
NULL
);
return
t
v
.
tv_sec
*
INT64_C
(
1000000
)
+
tv
.
tv_usec
;
(
void
)
timespec_get
(
&
ts
,
TIME_UTC
);
return
t
s
.
tv_sec
*
INT64_C
(
1000000
)
+
(
ts
.
tv_nsec
/
1000
)
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment