]>
git.proxmox.com Git - ceph.git/blob - ceph/src/include/utime.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2019 Red Hat
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.
16 #include "common/Formatter.h"
18 void utime_t::dump(ceph::Formatter
*f
) const
20 f
->dump_int("seconds", tv
.tv_sec
);
21 f
->dump_int("nanoseconds", tv
.tv_nsec
);
24 void utime_t::generate_test_instances(std::list
<utime_t
*>& o
)
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);