Subversion Repositories HelenOS

Rev

Rev 2486 | Rev 2615 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2486 Rev 2564
Line 173... Line 173...
173
        tv->tv_sec = s1;
173
        tv->tv_sec = s1;
174
 
174
 
175
    return 0;
175
    return 0;
176
}
176
}
177
 
177
 
-
 
178
time_t time(time_t *tloc)
-
 
179
{
-
 
180
    struct timeval tv;
-
 
181
 
-
 
182
    if (gettimeofday(&tv, NULL))
-
 
183
        return (time_t) -1;
-
 
184
    if (tloc)
-
 
185
        *tloc = tv.tv_sec;
-
 
186
    return tv.tv_sec;
-
 
187
}
-
 
188
 
178
/** Wait unconditionally for specified number of microseconds */
189
/** Wait unconditionally for specified number of microseconds */
179
void usleep(unsigned long usec)
190
void usleep(unsigned long usec)
180
{
191
{
181
    atomic_t futex = FUTEX_INITIALIZER;
192
    atomic_t futex = FUTEX_INITIALIZER;
182
 
193