Return to misc.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.101, 2016/01/20 09:22:39 | version 1.102, 2016/03/02 22:42:40 | ||
---|---|---|---|
|
|
||
return (ts.tv_sec); | return (ts.tv_sec); | ||
} | } | ||
double | |||
monotime_double(void) | |||
{ | |||
struct timespec ts; | |||
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) | |||
fatal("clock_gettime: %s", strerror(errno)); | |||
return (ts.tv_sec + (double)ts.tv_nsec / 1000000000); | |||
} | |||
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) | ||
{ | { |