This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <algorithm> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to your ~/.bashrc | |
function stopwatch() { | |
local BEGIN=$(date +%s) | |
while true; do | |
local NOW=$(date +%s) | |
local DIFF=$(($NOW - $BEGIN)) | |
local MINS=$(($DIFF / 60 % 60)) | |
local SECS=$(($DIFF % 60)) |