Changeset 131163af59a161c1794e254193e2d6c620472e29
- 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
| rb25e76f |
r131163a |
|
| 1050 | 1050 | return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000; |
|---|
| 1051 | 1051 | #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; |
|---|
| 1053 | 1057 | #endif |
|---|
| 1054 | 1058 | } |
|---|