diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index aa1dcadf823..8575ca11dc9 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -182,7 +182,7 @@ task 'assets:precompile' => 'assets:precompile:before' do STDERR.puts "Skipping: #{file} already compressed" else proc.call do - start = Time.now + start = Process.clock_gettime(Process::CLOCK_MONOTONIC) STDERR.puts "#{start} Compressing: #{file}" # We can specify some files to never minify @@ -196,7 +196,7 @@ task 'assets:precompile' => 'assets:precompile:before' do gzip(path) brotli(path) - STDERR.puts "Done compressing #{file} : #{(Time.now - start).round(2)} secs" + STDERR.puts "Done compressing #{file} : #{(Process.clock_gettime(Process::CLOCK_MONOTONIC) - start).round(2)} secs" STDERR.puts end end