Voltage problem is always a critical issue in operating a distribution system. The uncertainties of load distribution and variation have introduced a great complexity to the task of maintaining system voltage within the permitted range. In this paper, small-scale generator, known as distributed generation (DG), is employed in the system and acting as a voltage regulator. The output of DG is controlled in such a way that acceptable level of electrical supply quality is achieved with a reasonable operating cost. The DG controller is tested with a non-uniformly varying load on the time domain basis. Simulations have been conducted with both short term (few hundred seconds) and long term (weekly) load data to validate the proposed control technique. Results have proved that the system is well functioning not only technically but also economically.