diff --git a/.gitignore b/.gitignore index 7bbc71c..27deae1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Manual additions +.idea + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/mlcrate/time.py b/mlcrate/time.py index f481eef..c93a4d5 100644 --- a/mlcrate/time.py +++ b/mlcrate/time.py @@ -30,7 +30,7 @@ def format_elapsed(self, key, max_fields=3): """Get the time elapsed in seconds, nicely formatted by format_duration()""" return format_duration(self.elapsed(key), max_fields) -def str_time_now(): +def now(): """Returns the current time as a string in the format 'YYYY_MM_DD_HH_MM_SS'. Useful for timestamping filenames etc.""" return time.strftime("%Y_%m_%d_%H_%M_%S")