In this paper, we study stabilization ofs witched linear systems with time-varying delay in switching occurrence detection. The stabilization is realized through online and offline feedback mechanisms, respectively, and a state feedback controller design approach is proposed for each mechanism. To de