Changeset 013e5d32 in mainline for uspace/lib/posix/src/time.c
- Timestamp:
- 2018-03-19T20:35:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d1d143
- Parents:
- 973be387
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/time.c
r973be387 r013e5d32 235 235 int clock_gettime(clockid_t clock_id, struct timespec *tp) 236 236 { 237 struct timeval tv; 238 237 239 assert(tp != NULL); 238 240 239 241 switch (clock_id) { 240 242 case CLOCK_REALTIME: 241 ;242 struct timeval tv;243 243 gettimeofday(&tv, NULL); 244 244 tp->tv_sec = tv.tv_sec;
Note:
See TracChangeset
for help on using the changeset viewer.