Changeset 131163af59a161c1794e254193e2d6c620472e29

Show
Ignore:
Timestamp:
01/11/07 21:12:39 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1193947959 +0000
git-parent:

[aa31448fb2795d84e5384b8cbcfad5e6baa510f9]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1193947959 +0000
Message:

vlm: Use RT rather than monotonic clock - fixes #1288
Patch by Brian C. Wiles

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/vlm.c

    rb25e76f r131163a  
    10501050    return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000; 
    10511051#else 
    1052     return mdate(); 
     1052    struct timeval tv_date; 
     1053 
     1054    /* gettimeofday() cannot fail given &tv_date is a valid address */ 
     1055    (void)gettimeofday( &tv_date, NULL ); 
     1056    return (mtime_t) tv_date.tv_sec * 1000000 + (mtime_t) tv_date.tv_usec; 
    10531057#endif 
    10541058}