Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/FileUtils.java @ 618:7c0d2ce340b8
Refactor approach how content finds it way down to a commit revision
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 16 May 2013 19:46:13 +0200 |
parents | 65c01508f002 |
children | 868b2ffdcd5c |
comparison
equal
deleted
inserted
replaced
617:65c01508f002 | 618:7c0d2ce340b8 |
---|---|
93 log.dump(getClass(), Severity.Warn, ex, "Exception while closing stream quietly"); | 93 log.dump(getClass(), Severity.Warn, ex, "Exception while closing stream quietly"); |
94 } | 94 } |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 public static void main(String[] args) throws Exception { | |
99 final long start = System.nanoTime(); | |
100 final File src = new File(".../hg/cpython/.hg/store/00changelog.d"); | |
101 copyFile(src, new File("/tmp/zxczxczxc234")); | |
102 final long end = System.nanoTime(); | |
103 System.out.printf("Copy of %,d bytes took %d ms", src.length(), (end-start)/1000000); | |
104 } | |
98 } | 105 } |