mirror of
https://github.com/Hizenberg469/Makefile-tutorial.git
synced 2026-04-19 13:52:24 +03:00
13 lines
229 B
Bash
13 lines
229 B
Bash
#!/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. |