(v1.5.0.9021) improve speed of %like%

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-02-21 20:15:09 +01:00
1 parent daa12ced2c
commit 5ef8cb41a7
23 files changed
+137 -126

No files matched your search

+8
View File
@@ -1077,6 +1077,14 @@ percentage <- function(x, digits = NULL, ...) {
digits = digits, ...)
}
time_start_tracking <- function() {
pkg_env$time_start <- round(as.numeric(Sys.time()) * 1000)
}
time_track <- function(name = NULL) {
paste("(until now:", trimws(round(as.numeric(Sys.time()) * 1000) - pkg_env$time_start), "ms)")
}
# prevent dependency on package 'backports'
# these functions were not available in previous versions of R (last checked: R 4.0.3)
# see here for the full list: https://github.com/r-lib/backports