Mercurial > jhg
diff 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 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileUtils.java Wed May 15 20:10:09 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/FileUtils.java Thu May 16 19:46:13 2013 +0200 @@ -95,4 +95,11 @@ } } + public static void main(String[] args) throws Exception { + final long start = System.nanoTime(); + final File src = new File(".../hg/cpython/.hg/store/00changelog.d"); + copyFile(src, new File("/tmp/zxczxczxc234")); + final long end = System.nanoTime(); + System.out.printf("Copy of %,d bytes took %d ms", src.length(), (end-start)/1000000); + } }