feat(display): show text for default resolution; measure time ran
This commit is contained in:
parent
84ebbca10d
commit
0047f58726
1 changed files with 7 additions and 8 deletions
15
display.sh
15
display.sh
|
@ -34,18 +34,17 @@ function main() {
|
||||||
xrandr --output "$extern" --off --output "$intern" --auto
|
xrandr --output "$extern" --off --output "$intern" --auto
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
echo "Setting display to small mode (1680x1050)"
|
||||||
xrandr --output "$intern" --output "$intern" --mode 1680x1050
|
xrandr --output "$intern" --output "$intern" --mode 1680x1050
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_time=$(date +%s%N)
|
||||||
main
|
main
|
||||||
|
end_time=$(date +%s%N)
|
||||||
#start_time=$(date +%s%N)
|
duration=$((end_time - start_time))
|
||||||
#main
|
duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
|
||||||
#end_time=$(date +%s%N)
|
duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
|
||||||
#duration=$((end_time - start_time))
|
echo "Took $duration_s s"
|
||||||
#duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
|
|
||||||
#duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
|
|
||||||
#echo "Took $duration_s s"
|
|
||||||
|
|
Loading…
Reference in a new issue