Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 2.18 KB

time.asc

File metadata and controls

74 lines (51 loc) · 2.18 KB

time

getitimer

int getitimer( int which, struct itimerval value)
*get and set value of interval timer
Size: ~53B ../include/syscall_stubs.h l.265 manpage: getitimer

gettimeofday

int gettimeofday( struct timeval a1, struct timezone *a2)
*get the date and time
Size: ~47B ../include/syscall_stubs.h l.147 manpage: gettimeofday

setitimer

int setitimer( int which, struct itimerval value, struct itimerval *ovalue)
*set the value of an interval timer
Size: ~56B ../include/syscall_stubs.h l.264 manpage: setitimer

sleep

unsigned int volatile sleep(unsigned int seconds)
Defines: nanosleep
suspend execution for an interval of time

nonconformant sleep
 TODO: ignore blocked signals, sigchld

Size: ~123B ../src/process/sleep.c l.10 manpage: sleep

time

int time(unsigned int a1 )
*get time
Size: ~41B ../include/syscall_stubs.h l.277 manpage: time

usleep

unsigned int volatile usleep(unsigned int useconds)
Defines: nanosleep
suspend execution for microsecond intervals

nonconformant usleep.
 Sleep useconds.
 I just hope, noone relies on an exact sleep time.
 which isn't possible without a real time os, anyways.
 When for whatever reason you'd need nanoseconds exact times,
 best shot might be a spinloop, and looking for cpu ticks.

 TODO: ignore blocked signals, sigchld

Size: ~147B ../src/process/sleep.c l.31 manpage: usleep

utime

int utime( const char filename, struct utimbuf *times)
*set file access and modification times
Size: ~49B ../include/syscall_stubs.h l.203 manpage: utime