module core.c.posix.sys.time
C Bindings | Posix Bindings

Code Map

module core.c.posix.sys.time;

public import core.c.posix.sys.types;


enum ITIMER_REAL;
enum ITIMER_VIRTUAL;
enum ITIMER_PROF;

alias tv_sec_t = time_t;
alias tv_usec_t = suseconds_t;

struct timeval
{
public:
	tv_sec: time_t;
	tv_usec: suseconds_t;
}

struct itimerval
{
public:
	it_interval: timeval;
	it_value: timeval;
}

fn getitimer(i32, itimerval*) i32;
fn gettimeofday(timeval*, void*) i32;
fn setitimer(i32, const(const(itimerval)*), itimerval*) i32;
fn utimes(const(const(char)*), const(timeval)[2]) i32;