]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | /* | |
4 | * Ceph - scalable distributed file system | |
5 | * | |
6 | * Copyright (C) 2019 Red Hat | |
7 | * | |
8 | * This is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU Lesser General Public | |
10 | * License version 2.1, as published by the Free Software | |
11 | * Foundation. See file COPYING. | |
12 | * | |
13 | */ | |
14 | ||
15 | #include "utime.h" | |
16 | #include "common/Formatter.h" | |
17 | ||
18 | void utime_t::dump(ceph::Formatter *f) const | |
19 | { | |
20 | f->dump_int("seconds", tv.tv_sec); | |
21 | f->dump_int("nanoseconds", tv.tv_nsec); | |
22 | } | |
23 | ||
24 | void utime_t::generate_test_instances(std::list<utime_t*>& o) | |
25 | { | |
26 | o.push_back(new utime_t()); | |
27 | o.push_back(new utime_t()); | |
28 | o.back()->tv.tv_sec = static_cast<__u32>((1L << 32) - 1); | |
29 | o.push_back(new utime_t()); | |
30 | o.back()->tv.tv_nsec = static_cast<__u32>((1L << 32) - 1); | |
31 | } |