Return to misc.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.89, 2013/05/17 00:13:13 | version 1.90, 2013/06/01 13:15:52 | ||
---|---|---|---|
|
|
||
tv->tv_usec = (ms % 1000) * 1000; | tv->tv_usec = (ms % 1000) * 1000; | ||
} | } | ||
time_t | |||
monotime(void) | |||
{ | |||
struct timespec ts; | |||
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) | |||
fatal("clock_gettime: %s", strerror(errno)); | |||
return (ts.tv_sec); | |||
} | |||
void | void | ||
bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) | bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) | ||
{ | { |