lib/pgsync/utils.rb in pgsync-0.7.1 vs lib/pgsync/utils.rb in pgsync-0.7.2
- old
+ new
@@ -81,7 +81,11 @@
# activerecord
def quote_string(s)
s.gsub(/\\/, '\&\&').gsub(/'/, "''")
end
+
+ def monotonic_time
+ Process.clock_gettime(Process::CLOCK_MONOTONIC)
+ end
end
end