.netmf version of plotclock code