aboutsummaryrefslogtreecommitdiff
path: root/src/helper.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-05 14:04:41 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-05 14:04:41 +0200
commit6100010d6873845413aed22744470616992df603 (patch)
tree5cefcd46851d06e0d9e9b09f578c13649582d075 /src/helper.py
parent8a351c6d267c55445de7b7b40b1de3b16305bd02 (diff)
downloadphilosophers_test-6100010d6873845413aed22744470616992df603.tar.gz
philosophers_test-6100010d6873845413aed22744470616992df603.tar.bz2
philosophers_test-6100010d6873845413aed22744470616992df603.zip
Readded should be dead test
Diffstat (limited to 'src/helper.py')
-rw-r--r--src/helper.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/helper.py b/src/helper.py
index bc211c9..ff96638 100644
--- a/src/helper.py
+++ b/src/helper.py
@@ -6,25 +6,30 @@
# By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/29 11:19:32 by cacharle #+# #+# #
-# Updated: 2020/10/01 11:27:48 by cacharle ### ########.fr #
+# Updated: 2020/10/05 13:49:25 by cacharle ### ########.fr #
# #
# ############################################################################ #
import time
+
def current_ms():
return int(time.time() * 1000)
+
RED_CHARS = "\033[31m"
GREEN_CHARS = "\033[32m"
BLUE_CHARS = "\033[34m"
CLOSE_CHARS = "\033[0m"
+
def red(string):
return RED_CHARS + string + CLOSE_CHARS
+
def green(string):
return GREEN_CHARS + string + CLOSE_CHARS
+
def blue(string):
return BLUE_CHARS + string + CLOSE_CHARS