showtm() function.