mirror of
https://github.com/Hizenberg469/Makefile-tutorial.git
synced 2026-04-19 22:02:24 +03:00
created shell dir
This commit is contained in:
13
shell/time_measurement.sh
Normal file
13
shell/time_measurement.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
#start time measurement from here
|
||||
START=$(date +%s)
|
||||
CURRENT_DIRECTORY=$(pwd)
|
||||
sleep 2 #sleep 2 seconds
|
||||
END=$(date +%s)
|
||||
|
||||
#end time measurement
|
||||
DIFFERENCE=$(( END - START ))
|
||||
|
||||
echo
|
||||
echo Time elapsed: $DIFFERENCE seconds.
|
||||
Reference in New Issue
Block a user