aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-29 00:03:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-29 00:03:54 +0300
commitb56e7cd12b30fbb891e1947fb3a0eef06dc7ab89 (patch)
tree79eb344e27e119f1f04e9f723c9c10bc87446dbc /tests/fdstream/driver.cxx
parenta475a20e726250eca0a24ab26626a52fbc058b6a (diff)
Use system_clock instead of timestamp::clock
Diffstat (limited to 'tests/fdstream/driver.cxx')
-rw-r--r--tests/fdstream/driver.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx
index 41a39b0..42414bc 100644
--- a/tests/fdstream/driver.cxx
+++ b/tests/fdstream/driver.cxx
@@ -67,7 +67,7 @@ template <typename S, typename T>
static duration
write_time (const path& p, const T& s, size_t n)
{
- timestamp t (timestamp::clock::now ());
+ timestamp t (system_clock::now ());
S os (p.string (), ofstream::out);
os.exceptions (S::failbit | S::badbit);
@@ -80,7 +80,7 @@ write_time (const path& p, const T& s, size_t n)
}
os.close ();
- return timestamp::clock::now () - t;
+ return system_clock::now () - t;
}
template <typename S, typename T>
@@ -89,7 +89,7 @@ read_time (const path& p, const T& s, size_t n)
{
vector<T> v (n);
- timestamp t (timestamp::clock::now ());
+ timestamp t (system_clock::now ());
S is (p.string (), ofstream::in);
is.exceptions (S::failbit | S::badbit);
@@ -99,7 +99,7 @@ read_time (const path& p, const T& s, size_t n)
assert (is.eof ());
is.close ();
- duration d (timestamp::clock::now () - t);
+ duration d (system_clock::now () - t);
for (const auto& ve: v)
assert (ve == s);