Newbie question regarding millis()

See here for an example of a state diagram which can more less be coded from directly: Make an output pin behave like a monostable multivibrator - #12 by 6v6gt or here: With millis() i have to wait after loop finish - #52 by 6v6gt