Permalink
Browse files

Merge pull request #282 from edbond/master

use current time to touch output file. Fixes gh-281
  • Loading branch information...
2 parents 1e77137 + 3f287d5 commit 952c46f7e52bbbcbfd12d14371b709ba0b75f428 @cemerick cemerick committed Jan 10, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 support/src/cljsbuild/compiler.clj
@@ -52,11 +52,11 @@
(fs/delete-dir (:output-dir compiler-options)))
(when output-file-dir
(fs/mkdirs output-file-dir))
- (let [started-at (System/nanoTime)]
+ (let [started-at (System/currentTimeMillis)]
(try
(binding [*assert* assert?]
(build (SourcePaths. cljs-paths) compiler-options))
- (fs/touch output-file (/ started-at 1000000))
+ (fs/touch output-file started-at)
(notify-cljs
notify-command
(str "Successfully compiled \"" output-file "\" in " (elapsed started-at) ".") green)

0 comments on commit 952c46f

Please sign in to comment.